Skip to content

Commit

Permalink
week view flag default
Browse files Browse the repository at this point in the history
  • Loading branch information
go-faustino committed Dec 13, 2017
1 parent 298c21e commit b6fd6ac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions public/media/timemanagement/js/timemanagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ function monthlyView(){
function getWeekData(flag,weekNo,calWeek,day) {
if(day == undefined )
day = '';

if(flag == undefined )
flag = 'none';

if(flag == '' )
flag = 'none';

var selYrMon = $("#calSelYrMonth").val();
var url = base_url + module_name + "/index/week";
//window.location.href = url+'?selYrMon='+selYrMon+'&week='+weekNo+'&calWeek='+calWeek+'&flag='+flag+'&day='+day;
if(flag != 'time')
if(flag == '')
flag = 'none';

if(flag != 'time')
window.location.href = base_url+'/weekview/'+selYrMon+'/'+weekNo+'/'+calWeek+'/'+flag+'/'+day;
else
window.location.href = base_url+'/timeentry/'+selYrMon+'/'+weekNo+'/'+calWeek+'/'+flag+'/'+day;
Expand Down

0 comments on commit b6fd6ac

Please sign in to comment.