Matthew Schinckel avatar Matthew Schinckel committed 5534181

Updated jQuery.

Comments (0)

Files changed (3)

-0.3.1.2
+0.3.1.3

src/js/datepicker.js

     }
     
     // TODO read this in automatically from ../html/datepicker.template.html
-    var $widget = $("<div class=\"datepicker-wrapper\"><div class=\"datepicker dropdown-menu\"><div class=\"alert alert-error\" data-bind=\"visible: error\"><p data-bind=\"text: error\"></p></div><table class=\"table-condensed\"><thead><tr><th><a data-bind=\"click: prevMonth, enable: prevMonth.enabled\"><i class=\"icon-arrow-left\"></i></a></th><th data-bind=\"attr: {colspan: showWeekNumbers() ? 6: 5}\" class=\"month-year-selector\"><select class=\"input-medium\" data-bind=\"options:monthChoices, optionsText:'name', optionsValue:'value', value:visibleMonth\"></select><select class=\"input-small\" data-bind=\"options:yearChoices, value:visibleYear\"></select></span><th><a data-bind=\"click: nextMonth, enable: nextMonth.enabled\"><i class=\"icon-arrow-right\"></i></a></th></tr><tr><!-- ko if: showWeekNumbers --><th data-bind=\"text: weekNumberTitle\"></th><!-- /ko --><!-- ko foreach: weekdays --><th data-bind=\"text: $data\"></th><!-- /ko --></tr></thead><tbody data-bind=\"foreach: visibleWeeks\"><tr><!-- ko if: $root.showWeekNumbers --><th data-bind=\"text: $data[0].getWeek()\"></th><!-- /ko --><!-- ko foreach: $data --><td><a href=\"#\" data-bind=\"text: getDate(), click: $root.selectDate, css: css\"></a></td><!-- /ko --></tr></tbody><tfoot><tr><td colspan=\"3\"><a href=\"#\" data-bind=\"click: selectToday, text: strings.today\"></a></td><td data-bind=\"attr: {colspan: showWeekNumbers() ? 2 : 1}\"></td><td colspan=\"3\"><a href=\"#\" class=\"done\" data-bind=\"click: hide, text: strings.done\"></a></td></tr></tfoot></table><table></div></div>");
+    var $widget = $("<div class=\"datepicker-wrapper\"><div class=\"datepicker dropdown-menu\"><div class=\"alert alert-error\" data-bind=\"visible: error\"><p data-bind=\"text: error\"></p></div><table class=\"table-condensed\"><thead><tr><th><a href=\"#prev-month\" data-bind=\"click: prevMonth, enable: prevMonth.enabled\"><i class=\"icon-arrow-left\"></i></a></th><th data-bind=\"attr: {colspan: showWeekNumbers() ? 6: 5}\" class=\"month-year-selector\"><select class=\"input-medium\" data-bind=\"options:monthChoices, optionsText:'name', optionsValue:'value', value:visibleMonth\"></select><select class=\"input-small\" data-bind=\"options:yearChoices, value:visibleYear\"></select></span><th><a href=\"#next-month\" data-bind=\"click: nextMonth, enable: nextMonth.enabled\"><i class=\"icon-arrow-right\"></i></a></th></tr><tr><!-- ko if: showWeekNumbers --><th data-bind=\"text: weekNumberTitle\"></th><!-- /ko --><!-- ko foreach: weekdays --><th data-bind=\"text: $data\"></th><!-- /ko --></tr></thead><tbody data-bind=\"foreach: visibleWeeks\"><tr><!-- ko if: $root.showWeekNumbers --><th data-bind=\"text: $data[0].getWeek()\"></th><!-- /ko --><!-- ko foreach: $data --><td><a href=\"#\" data-bind=\"text: getDate(), click: $root.selectDate, css: css, attr: {href: '#' + getDate()}\"></a></td><!-- /ko --></tr></tbody><tfoot><tr><td colspan=\"3\"><a href=\"#a\" data-bind=\"click: selectToday, text: strings.today\"></a></td><td data-bind=\"attr: {colspan: showWeekNumbers() ? 2 : 1}\"></td><td colspan=\"3\"><a href=\"#a\" class=\"done\" data-bind=\"click: hide, text: strings.done\"></a></td></tr></tfoot></table><table></div></div>");
     
     // Allow us to easily override options, but still have the defaults as observable.
     function Options(source) {
     };
     
     // Calculate the weeks that should be shown for the currently visible month.
-    datepicker.visibleWeeks = ko.dependentObservable({read: function visibleWeeks(){
+    datepicker.visibleWeeks = ko.dependentObservable(function visibleWeeks(){
       var visibleWeeks = [];
       var month = Number(datepicker.visibleMonth());
       var year = Number(datepicker.visibleYear());
       });
       
       return visibleWeeks;
-    }, deferEvaluation: false});
+    });
     
     /* Event handlers. Note that these use the new ko2.0 syntax */
     // Change the display to the previous calendar month.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.