Skip to content

Commit 26b5d5b

Browse files
committed
Fixed URLs for old Mobile versions.
1 parent 2b63cac commit 26b5d5b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

grunt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ grunt.registerTask( "build-index", function() {
222222
var files = grunt.file.expandFiles( "cdn/mobile/*/*.css" ),
223223
releases = files.map(function( file ) {
224224
var version = /cdn\/mobile\/([^\/]+)/.exec( file )[ 1 ],
225-
filename = "jquery.mobile-" + version + ".js",
226-
mainCssFile = "cdn/mobile/" + version + "/" + filename.replace( ".js", ".css" );
225+
filename = "mobile/" + version + "/jquery.mobile-" + version + ".js",
226+
mainCssFile = "cdn/" + filename.replace( ".js", ".css" );
227227

228228
if ( file !== mainCssFile ) {
229229
return null;
@@ -251,7 +251,7 @@ grunt.registerTask( "build-index", function() {
251251
release.css = css;
252252
release.minifiedCss = minCss;
253253

254-
if ( files.indexOf( "cdn/mobile/" + release.version + "/" + structure ) !== -1 ) {
254+
if ( files.indexOf( "cdn/" + structure ) !== -1 ) {
255255
release.structure = structure;
256256
release.minifiedStructure = minStructure;
257257
}

templates/mobile-release.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<li>
22
jQuery Mobile {{version}} -
3-
<a href="/mobile/{{version}}/{{filename}}">uncompressed</a>,
4-
<a href="/mobile/{{version}}/{{minified}}">minfied</a>,
5-
<a href="/mobile/{{version}}/{{minifiedCss}}">theme</a>
3+
<a href="/{{filename}}">uncompressed</a>,
4+
<a href="/{{minified}}">minfied</a>,
5+
<a href="/{{minifiedCss}}">theme</a>
66
{{#if minifiedStructure}}
7-
(<a href="/mobile/{{version}}/{{minifiedStructure}}">structure only</a>)
7+
(<a href="/{{minifiedStructure}}">structure only</a>)
88
{{/if}}
99
</li>

0 commit comments

Comments
 (0)