summaryrefslogtreecommitdiffstats
path: root/module/web/static/js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-27 11:43:57 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-08-27 11:43:57 +0200
commit81cd75591e2bb96790912306d9c3930d6a917d5f (patch)
treefc3a5a91cd3212fd7b99d54fcb61b9520ab8d592 /module/web/static/js
parentdependency updates (diff)
downloadpyload-81cd75591e2bb96790912306d9c3930d6a917d5f.tar.xz
new mobile template
Diffstat (limited to 'module/web/static/js')
-rw-r--r--module/web/static/js/mobile.js38
1 files changed, 23 insertions, 15 deletions
diff --git a/module/web/static/js/mobile.js b/module/web/static/js/mobile.js
index 21d1be26c..58ccf5800 100644
--- a/module/web/static/js/mobile.js
+++ b/module/web/static/js/mobile.js
@@ -1,18 +1,22 @@
// Sets the require.js configuration for your application.
require.config({
-
- // 3rd party script alias names (Easier to type "jquery" than "libs/jquery-1.7.2.min")
- paths: {
- // Core Libraries
- jquery: "libs/jquery-1.8.0",
- underscore: "libs/lodash-0.4.2",
- backbone: "libs/backbone-0.9.2",
+ paths:{
+
+ jquery:"libs/jquery-1.8.0",
+ jqueryui:"libs/jqueryui",
+ flot:"libs/jquery.flot.min",
+ transit:"libs/jquery.transit-0.1.3",
+ fastClick:"libs/jquery.fastClick-0.2",
+ omniwindow: "libs/jquery.omniwindow",
- // Require.js Plugins
- text: "plugins/text-2.0.0"
+ underscore:"libs/lodash-0.5.2",
+ backbone:"libs/backbone-0.9.2",
- },
+ // Require.js Plugins
+ text:"plugins/text-2.0.3"
+
+ },
// Sets the configuration for your third party scripts that are not AMD compatible
shim: {
@@ -20,15 +24,19 @@ require.config({
"backbone": {
deps: ["underscore", "jquery"],
exports: "Backbone" //attaches "Backbone" to the window object
- }
+ },
+ transit: ["jquery"],
+ fastClick: ["jquery"]
} // end Shim Configuration
});
-// Include Desktop Specific JavaScript files here (or inside of your Desktop router)
-require(['jquery','backbone','routers/mobileRouter'], function($, Backbone, Mobile) {
+define('mobile', ['routers/mobileRouter', 'transit', 'fastClick'], function(Mobile) {
+
+ var init = function(){
+ var router = new Mobile();
+ };
- // Instantiates a new Router
- this.router = new Mobile();
+ return {"init":init};
}); \ No newline at end of file