Subversion Repositories SmartDukaan

Rev

Rev 36955 | Rev 37020 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36955 Rev 36962
Line 285... Line 285...
285
<script>
285
<script>
286
var CTX = '${rc.contextPath}';
286
var CTX = '${rc.contextPath}';
287
var BASE = CTX + '/beat-journey';
287
var BASE = CTX + '/beat-journey';
288
var LENS = 'today';
288
var LENS = 'today';
289
var TODAY = '$today';
289
var TODAY = '$today';
-
 
290
var CAN_EDIT_BEAT = $canEditBeat;
290
 
291
 
291
function el(id){ return document.getElementById(id); }
292
function el(id){ return document.getElementById(id); }
292
// The first lens reads "Today (Live)" for today's date, otherwise it shows the
293
// The first lens reads "Today (Live)" for today's date, otherwise it shows the
293
// selected date (the tab is still the live/single-day view, just for that day).
294
// selected date (the tab is still the live/single-day view, just for that day).
294
function fmtDateLabel(d){
295
function fmtDateLabel(d){
Line 532... Line 533...
532
       '<td class="num cnt camber">'+c.deferred+'</td>'+
533
       '<td class="num cnt camber">'+c.deferred+'</td>'+
533
       '<td><span class="pill-state '+stateClass(r.state)+'">'+esc(r.stateLabel)+'</span></td>'+
534
       '<td><span class="pill-state '+stateClass(r.state)+'">'+esc(r.stateLabel)+'</span></td>'+
534
       '<td style="white-space:nowrap" onclick="event.stopPropagation()">'+
535
       '<td style="white-space:nowrap" onclick="event.stopPropagation()">'+
535
         '<button class="actbtn map" title="Live location" onclick="openExec('+A+',\'map\')">&#128205;</button>'+
536
         '<button class="actbtn map" title="Live location" onclick="openExec('+A+',\'map\')">&#128205;</button>'+
536
         '<button class="actbtn view" title="Journey detail" onclick="openExec('+A+')">&#128065;</button>'+
537
         '<button class="actbtn view" title="Journey detail" onclick="openExec('+A+')">&#128065;</button>'+
-
 
538
         (CAN_EDIT_BEAT
537
         '<button class="actbtn edit" title="Edit beat in Beat Planner" onclick="openPlanner('+r.authUserId+','+(r.beatId||0)+',\''+date+'\',\'edit\')">&#9998;</button>'+
539
           ? '<button class="actbtn edit" title="Edit beat in Beat Planner" onclick="openPlanner('+r.authUserId+','+(r.beatId||0)+',\''+date+'\',\'edit\')">&#9998;</button>'+
538
         '<button class="actbtn add" title="Assign / add visit in Beat Planner" onclick="openPlanner('+r.authUserId+','+(r.beatId||0)+',\''+date+'\',\'add\')">&#43;</button>'+
540
             '<button class="actbtn add" title="Assign / add visit in Beat Planner" onclick="openPlanner('+r.authUserId+','+(r.beatId||0)+',\''+date+'\',\'add\')">&#43;</button>'
-
 
541
           : '')+
539
       '</td></tr>';
542
       '</td></tr>';
540
  });
543
  });
541
  return h+'</tbody></table></div>';
544
  return h+'</tbody></table></div>';
542
}
545
}
543
// Funnel drill-down: each stage shows the executives who reached it AND the
546
// Funnel drill-down: each stage shows the executives who reached it AND the