Commits

Steve Michelotti committed c7016cf

minor js tweaks

Comments (0)

Files changed (2)

src/Working/BasketballPlaybook/BasketballPlaybook/Scripts/bp-index.js

                 viewModel.currentTagDrills(ko.toProtectedObservableItemArray(data));
             });
         }, viewModel);
-
     });
 
     function drillModel() {

src/Working/BasketballPlaybook/BasketballPlaybook/Scripts/ko-execute-on-enter.js

     init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
         var value = valueAccessor();
         $(element).keypress(function (event) {
-            if (event.charCode === 13) {
+            if (event.which === 13) {
                 value.call(viewModel);
                 return false;
             }