Skip to content

Commit

Permalink
UI-1772: Use the new monster.ui.timepicker() method to initialize the…
Browse files Browse the repository at this point in the history
… jQuery timepicker plugin
  • Loading branch information
joristirado committed Aug 12, 2015
1 parent eb0c78a commit 95670cb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions submodules/strategy/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ define(function(require){
var $ = require('jquery'),
_ = require('underscore'),
monster = require('monster'),
timepicker = require('timepicker'),
timezone = require('monster-timezone'),
toastr = require('toastr');

Expand Down Expand Up @@ -512,9 +511,7 @@ define(function(require){

container.find('.element-content').empty()
.append(template);
template.find('.timepicker').timepicker({
timeFormat: is12hMode ? 'g:ia' : 'G:i'
});
monster.ui.timepicker(template.find('.timepicker'));
callback && callback();
break;
case "holidays":
Expand Down

0 comments on commit 95670cb

Please sign in to comment.