diff --git a/Gruntfile.js b/Gruntfile.js index ac2d64bb2a..fb10464712 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -21,7 +21,8 @@ module.exports = function(grunt) { options: { components: { "jquery.ui": ["npm", {"grunt": "build"}], - "bootstrap": ["npm", {"make": "bootstrap"}] + "bootstrap": ["npm", {"make": "bootstrap"}], + "jquery-mobile": ["npm", {"make": "all"}] } } } @@ -116,6 +117,19 @@ module.exports = function(grunt) { "dest": "www/assets/jquery-file-upload/", "flatten": true }, + "jquery-mobile": { + "expand": true, + "cwd": "assets/jquery-mobile", + "src": [ + "compiled/images/*", + "jquery.mobile.css", + "jquery.mobile.js" + ], + "rename": function(dest, src) { + return dest + src.replace("compiled", ""); + }, + "dest": "www/assets/jquery-mobile/" + }, "jquery-ui": { "expand": true, "cwd": "assets/jquery.ui", diff --git a/bower.json b/bower.json index c457f19210..f348d3496b 100644 --- a/bower.json +++ b/bower.json @@ -5,6 +5,7 @@ "bootstrap": "~2.2.2", "jquery": "~1.8.3", "jquery.ui": "~1.10.0", + "jquery-mobile": "~1.2.1", "font-awesome": "~3.0.2", "modernizr": "~2.6.2", "normalize-css" : "~2.1.0", diff --git a/templates/mobile/common/index.html.twig b/templates/mobile/common/index.html.twig index e1dd51535b..37dd970e43 100644 --- a/templates/mobile/common/index.html.twig +++ b/templates/mobile/common/index.html.twig @@ -5,9 +5,9 @@ {{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} - + - + {% block stylesheet %}{% endblock %} {% block icon %}{% endblock %} {% block javascript %}{% endblock %}