Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit a992db2

Browse files
committed
Demos: Changed the way the version is set on demo pages
1 parent fdb1838 commit a992db2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

demos/_assets/js/jqm-demos.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ $( document ).on( "pageinit", function() {
4949
var version = $.mobile.version || "dev",
5050
words = version.split( "-" ),
5151
ver = words[0],
52-
str = ( words[1] || "Final" ),
53-
html = "Version " + ver;
52+
str = version === "dev" ? "" : ( words[1] || "Final" ),
53+
text = ver;
5454

5555
if ( str.indexOf( "rc" ) == -1 ) {
5656
str = str.charAt( 0 ).toUpperCase() + str.slice( 1 );
@@ -59,10 +59,11 @@ $( document ).on( "pageinit", function() {
5959
}
6060

6161
if ( $.mobile.version && str ) {
62-
html += " " + str;
62+
text += " " + str;
6363
}
6464

65-
$( ".jqm-version" ).html( html );
65+
$( ".jqm-version" ).html( "Version " + text );
66+
$( ".jqm-version-number" ).html( text );
6667
});
6768

6869

0 commit comments

Comments
 (0)