introduce eventman.js for our utilities
This commit is contained in:
parent
3680298684
commit
a93cd5996d
3 changed files with 9 additions and 9 deletions
|
@ -9,6 +9,7 @@
|
|||
<script src="/static/js/angular-route.js"></script>
|
||||
<script src="/static/js/angular-resource.js"></script>
|
||||
<script src="/static/js/ui-bootstrap-tpls-0.12.1.min.js"></script>
|
||||
<script src="/static/js/eventman.js"></script>
|
||||
<script src="/js/app.js"></script>
|
||||
<script src="/js/services.js"></script>
|
||||
<script src="/js/controllers.js"></script>
|
||||
|
|
9
angular_app/js/app.js
vendored
9
angular_app/js/app.js
vendored
|
@ -14,13 +14,6 @@
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
String.prototype.getTime = function() {
|
||||
var ms = Date.parse(this);
|
||||
return new Date(ms);
|
||||
};
|
||||
|
||||
|
||||
/* Register our fantastic app. */
|
||||
var eventManApp = angular.module('eventManApp', [
|
||||
'ngRoute',
|
||||
|
@ -29,8 +22,6 @@ var eventManApp = angular.module('eventManApp', [
|
|||
'ui.bootstrap'
|
||||
]);
|
||||
|
||||
//angular.module('eventManApp', ['ui.bootstrap']);
|
||||
|
||||
|
||||
/* Directive that can be used to make an input field react to the press of Enter. */
|
||||
eventManApp.directive('ngEnter', function () {
|
||||
|
|
8
static/js/eventman.js
Normal file
8
static/js/eventman.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
/** Utilities for EventMan. */
|
||||
|
||||
/* getTime method for string to convert them into Date objects. */
|
||||
String.prototype.getTime = function() {
|
||||
var ms = Date.parse(this);
|
||||
return new Date(ms);
|
||||
};
|
||||
|
Loading…
Reference in a new issue