Permalink
Browse files

Demos: Changed the way the version is set on demo pages

  • Loading branch information...
gseguin committed Mar 2, 2013
1 parent fdb1838 commit a992db295bb43265341881b48e0c9e3c5fb11d07
Showing with 5 additions and 4 deletions.
  1. +5 −4 demos/_assets/js/jqm-demos.js
@@ -49,8 +49,8 @@ $( document ).on( "pageinit", function() {
var version = $.mobile.version || "dev",
words = version.split( "-" ),
ver = words[0],
str = ( words[1] || "Final" ),
html = "Version " + ver;
str = version === "dev" ? "" : ( words[1] || "Final" ),
text = ver;
if ( str.indexOf( "rc" ) == -1 ) {
str = str.charAt( 0 ).toUpperCase() + str.slice( 1 );
@@ -59,10 +59,11 @@ $( document ).on( "pageinit", function() {
}
if ( $.mobile.version && str ) {
html += " " + str;
text += " " + str;
}
$( ".jqm-version" ).html( html );
$( ".jqm-version" ).html( "Version " + text );
$( ".jqm-version-number" ).html( text );
});

0 comments on commit a992db2

Please sign in to comment.