Cleanup, mobile module

This commit is contained in:
jendib 2013-08-12 19:56:31 +02:00
parent 2c430f522c
commit 10a7be01f5
2 changed files with 106 additions and 101 deletions

View File

@ -14,7 +14,7 @@
async: false, // load imports async
fileAsync: false, // load imports async when in a page under a file protocol
poll: 1000, // when in watch mode, time in ms between polls
dumpLineNumbers: 'all', // or "mediaQuery" or "comments"
dumpLineNumbers: 'all' // or "mediaQuery" or "comments"
};
</script>
<script src="lib/jquery.js" type="text/javascript"></script>
@ -24,6 +24,7 @@
<script src="lib/colorpicker.js" type="text/javascript"></script>
<script src="lib/angular/angular.js" type="text/javascript"></script>
<script src="lib/angular/angular-sanitize.js" type="text/javascript"></script>
<script src="lib/angular/angular-mobile.js" type="text/javascript"></script>
<script src="lib/angular.ui-router.js" type="text/javascript"></script>
<script src="lib/angular.ui-bootstrap.js" type="text/javascript"></script>
<script src="lib/angular.ui-utils.js" type="text/javascript"></script>

View File

@ -3,7 +3,11 @@
/**
* Trackino application.
*/
var App = angular.module('docs', ['ui.state', 'ui.bootstrap', 'ui.route', 'ui.keypress', 'ui.validate', 'ui.sortable', 'restangular', 'ngSanitize', 'colorpicker.module'])
var App = angular.module('docs',
// Dependencies
['ui.state', 'ui.bootstrap', 'ui.route', 'ui.keypress', 'ui.validate',
'ui.sortable', 'restangular', 'ngSanitize', 'ngMobile', 'colorpicker.module']
)
/**
* Configuring modules.
@ -169,7 +173,7 @@ var App = angular.module('docs', ['ui.state', 'ui.bootstrap', 'ui.route', 'ui.ke
// Configuring Restangular
RestangularProvider.setBaseUrl('api');
// Configuring $http
// Configuring $http to act like jQuery.ajax
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.headers.put['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.transformRequest = [function(data) {