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

Commit

Permalink
Demos: replaced "docs" by "demos" in global nav utilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Mar 27, 2013
1 parent 88d5980 commit 09e6f13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/_assets/js/jqm-demos.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $( document ).on( "pageinit", ".jqm-demos", function() {

// global search
$( this ).find( ".jqm-search ul.jqm-list" ).listview({
globalNav: "docs",
globalNav: "demos",
inset: true,
theme: "d",
dividerTheme: "d",
Expand Down Expand Up @@ -120,7 +120,7 @@ $( document ).on( "pageinit", ".jqm-demos", function() {
});

$( this ).find( ".jqm-content ul.jqm-list " ).listview({
globalNav: "docs",
globalNav: "demos",
inset: true,
theme: "d",
dividerTheme: "d",
Expand Down Expand Up @@ -228,8 +228,8 @@ $( document ).on( "mobileinit", function() {
form.attr( "method", "get" )
.attr( "action", this.options.submitTo );

var base = $( "base" ).attr( "href" ).split( "docs" )[0];
base = base.split( "index.html" )[0] + "docs" + "/";
var base = $( "base" ).attr( "href" ).split( "demos" )[0];
base = base.split( "index.html" )[0] + "demos" + "/";
url = base + this.options.submitTo + "?search=" + this.element.parent().find( "input" ).val();

$.mobile.changePage( url );
Expand Down

0 comments on commit 09e6f13

Please sign in to comment.