Permalink
Browse files

manually added @gseguin's change (April 18th 2012)

  • Loading branch information...
1 parent aa738cd commit 9d1c463aeb52342d25e56e73fc5881e1b9b71820 @agcolom agcolom committed Jun 25, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 docs/_assets/js/jqm-docs.js
@@ -5,6 +5,20 @@ $(function(){
});
});
+// display the version of jQM
+$(function() {
+var version = $.mobile.version || "dev",
+words = version.split( "-" ),
+ver = words[0],
+str = (words[1] || "Final"),
+html = ver;
+
+str = str.charAt( 0 ).toUpperCase() + str.slice( 1 );
+if ( $.mobile.version && str ) {
+html += " <b>" + str + "</b>";
+}
+$( "p.jqm-version" ).html( html );
+})
// Turn off AJAX for local file browsing
if ( location.protocol.substr(0,4) === 'file' ||

0 comments on commit 9d1c463

Please sign in to comment.