-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeclaration.js
More file actions
33 lines (32 loc) · 825 Bytes
/
declaration.js
File metadata and controls
33 lines (32 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(function($) {
'use strict';
function showroute(task) {
var i;
var row;
var tpref;
for(i=0; i < task.length; i++) {
switch(i) {
case 0:
tpref="Start";
break;
case task.length-1:
tpref="Finish";
break;
default:
tpref="Waypoint " + i.toString();
}
row= "<tr><th>" + tpref + ":</th><td>"+ task[i].tpname + "</td><td>"+showpoint(task[i]) + "</td></tr>";
$('#route').append(row);
}
}
$(document).ready(function () {
$('#datepick').dcalendarpicker({format:'w dd mmm yyyy'});
showroute(window.opener.taskdetail);
$("#printme").click(function(){
window.print();
});
$("#closeme").click(function() {
window.close();
});
});
}(jQuery));