webui-aria2/js/init.js

27 lines
1.0 KiB
JavaScript
Raw Normal View History

2013-03-02 12:01:07 +01:00
var webui = angular.module('webui', [
'webui.services.utils', 'webui.services.deps', 'webui.services.base64',
'webui.services.configuration', 'webui.services.rpc',
'webui.services.modals', 'webui.services.alerts',
'webui.services.settings', 'webui.services.settings.filters',
'webui.filters.bytes',
'webui.directives.chunkbar', 'webui.directives.dgraph', 'webui.directives.fselect',
2013-03-02 12:01:07 +01:00
'webui.ctrls.download', 'webui.ctrls.nav', 'webui.ctrls.modal', 'webui.ctrls.alert',
'webui.ctrls.props',
2013-03-02 12:01:07 +01:00
// external deps
'ui.bootstrap.collapse', 'ui.bootstrap.dropdownToggle',
'ui.bootstrap.modal', 'ui.bootstrap.alert'
]);
$(function() {
2014-02-28 12:39:34 +01:00
if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', {
enumerable: false, configurable: false, writable: false,
value: function (searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
}
});
}
2013-03-02 12:01:07 +01:00
angular.bootstrap(document, ['webui'])
});