Add jquery mobile

This commit is contained in:
Nicolas Le Goff
2013-08-13 02:11:27 +02:00
parent 7d8e93bddd
commit 4a8e1c13ab
3 changed files with 18 additions and 3 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -5,9 +5,9 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>{{ app['phraseanet.registry'].get('GV_homeTitle') }} - {{ module_name }} </title>
<link rel="stylesheet" href="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.css' }) }}" />
<link rel="stylesheet" href="{{ path('minifier', { 'f' : 'assets/jquery-mobile/jquery.mobile.css' }) }}" />
<script src="{{ path('minifier', { 'f' : 'assets/jquery/jquery.js' }) }}"></script>
<script src="{{ path('minifier', { 'f' : 'include/jslibs/jquery.mobile-1.2.1/jquery.mobile-1.2.1.js' }) }}"></script>
<script src="{{ path('minifier', { 'f' : 'assets/jquery-mobile/jquery.mobile.js' }) }}"></script>
{% block stylesheet %}{% endblock %}
{% block icon %}{% endblock %}
{% block javascript %}{% endblock %}