Skip to content

Commit 85463ff

Browse files
author
Mahesh
committed
1 parent 877f046 commit 85463ff

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,5 +367,19 @@ app.controller('ClockController', ['$scope', '$interval', 'TimeZoneClocksManager
367367
};
368368
}]);
369369

370+
// Temporary workaround for https://github.com/angular-ui/bootstrap/issues/2659 to avoid showing the
371+
// entire date in the datepicker text box. Once the above issue is fixed, make sure the latest bootstrap-ui
372+
// is being used and remove the following directive.
373+
app.directive('datepickerPopup', function (){
374+
return {
375+
restrict: 'EAC',
376+
require: 'ngModel',
377+
link: function(scope, element, attr, controller) {
378+
//remove the default formatter from the input directive to prevent conflict
379+
controller.$formatters.shift();
380+
}
381+
}
382+
});
383+
370384
})();
371385

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<script src="jquery.autocomplete.js"></script>
1111

12-
<script src="ui-bootstrap-tpls-0.12.1.min.js"></script>
12+
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.12.1/ui-bootstrap-tpls.min.js'></script>
1313
<script src="jquery.timepicker.min.js"></script>
1414
<script src="timepickerdirective.min.js"></script>
1515

0 commit comments

Comments
 (0)