From 37fe2cc6a31b563fa775f2cf916108b1a6b577a6 Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Thu, 6 Dec 2012 16:03:07 -0700 Subject: [PATCH 01/52] listview filter: autocomplete demo issue #5096 --- docs/demos/index.html | 1 + .../listview-filter-autocomplete.html | 80 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 docs/demos/listviews/listview-filter-autocomplete.html diff --git a/docs/demos/index.html b/docs/demos/index.html index 326b9d1eb62..48b30fc32bb 100644 --- a/docs/demos/index.html +++ b/docs/demos/index.html @@ -49,6 +49,7 @@

Demos

  • Listviews
  • Listviews
  • Listview Filter & Autodividers
  • +
  • Autocomplete from a remote source using listview
  • Listview Forms
  • Collapsible listview
  • Grids
  • diff --git a/docs/demos/listviews/listview-filter-autocomplete.html b/docs/demos/listviews/listview-filter-autocomplete.html new file mode 100644 index 00000000000..b4f034e67d9 --- /dev/null +++ b/docs/demos/listviews/listview-filter-autocomplete.html @@ -0,0 +1,80 @@ + + + + + + Listview Filter & Autodividers - jQuery Mobile Demos + + + + + + + + +
    + +
    +

    Listview Autocomplete

    + Home +
    + +
    + +
    + +
    +
      +
      + + +
      + +
      + + + +
      + + + From 981307fb191b488bd47cd8dabf1cb6e9d7b2b6e3 Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Mon, 10 Dec 2012 20:40:43 -0700 Subject: [PATCH 02/52] Demos: Autocomplete. Code style --- .../listview-filter-autocomplete.html | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/docs/demos/listviews/listview-filter-autocomplete.html b/docs/demos/listviews/listview-filter-autocomplete.html index b4f034e67d9..bab1ddd4a56 100644 --- a/docs/demos/listviews/listview-filter-autocomplete.html +++ b/docs/demos/listviews/listview-filter-autocomplete.html @@ -10,22 +10,18 @@ @@ -55,25 +51,25 @@

      Listview Autocomplete

      Home - +
      - +
      - +
      -
        +
          - +
          - + - + From b3166c936b94201beb8a180d6af6ebc3e1cccfb9 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 12 Dec 2012 11:07:38 -0500 Subject: [PATCH 03/52] added fixedToolbar.workarounds to mobile.js --- js/jquery.mobile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index d119faf23e4..938807cd89f 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -29,6 +29,7 @@ define([ './widgets/controlgroup', './jquery.mobile.links', './widgets/fixedToolbar', + './widgets/fixedToolbar.workarounds' './widgets/popup', './widgets/table', './widgets/table.columntoggle', From c6563da96d95b769d677c66f3e692aa2c50478bf Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 12 Dec 2012 11:14:31 -0500 Subject: [PATCH 04/52] mobile.js missing comma --- js/jquery.mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 938807cd89f..4b13bfbda24 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -29,7 +29,7 @@ define([ './widgets/controlgroup', './jquery.mobile.links', './widgets/fixedToolbar', - './widgets/fixedToolbar.workarounds' + './widgets/fixedToolbar.workarounds', './widgets/popup', './widgets/table', './widgets/table.columntoggle', From 5b8d80683229c8c1befb346b74fb91ff2e513f70 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Wed, 12 Dec 2012 15:37:41 -0500 Subject: [PATCH 05/52] Checkboxradio: Remove fieldset from being a form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit owner so that radios in different fieldsets are properly associated. Fixes: #5366 - Enhanced radio buttons stay checked when others in group are clicked --- js/widgets/forms/checkboxradio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/forms/checkboxradio.js b/js/widgets/forms/checkboxradio.js index b35234a6225..d416ef984b8 100644 --- a/js/widgets/forms/checkboxradio.js +++ b/js/widgets/forms/checkboxradio.js @@ -154,7 +154,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, { return this.element; } - return this.element.closest( "form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')" ) + return this.element.closest( "form, :jqmData(role='page'), :jqmData(role='dialog')" ) .find( "input[name='" + this.element[0].name + "'][type='" + this.inputtype + "']" ); }, From 64a8d97d92eb932fcf565203e9257192716f862d Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 13 Dec 2012 00:17:04 +0200 Subject: [PATCH 06/52] Fixed toolbar: Revert to using .one(). Re: #5361 --- js/widgets/fixedToolbar.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/widgets/fixedToolbar.js b/js/widgets/fixedToolbar.js index e18a9f96a27..5efc07b9195 100644 --- a/js/widgets/fixedToolbar.js +++ b/js/widgets/fixedToolbar.js @@ -166,12 +166,9 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque nextFooter.add( nextHeader ).appendTo( $.mobile.pageContainer ); - this._on( ui.nextPage, { - pageshow: function() { - nextHeader.prependTo( ui.nextPage ); - nextFooter.appendTo( ui.nextPage ); - this._off( ui.nextPage, "pageshow" ); - } + ui.nextPage.one( "pageshow", function() { + nextHeader.prependTo( this ); + nextFooter.appendTo( this ); }); } } From 8e8b83a8ded9c522dcf60d1fb00ff40f79e5b3a1 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 13 Dec 2012 09:27:42 +0200 Subject: [PATCH 07/52] Navigation: vclick handler: Do not avoid removing active class off button that already has it This is a revert of 35eea35a42aba78146786d67fef6f5fc7985d701 and makes our faulty handling of the double vclick on iOS look even worse, but the correct solution for iOS is not to fix the button active-indication, but to fix the double-vclick-but-no-click problem - see #5149 --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index bbbbd6dfff6..c2caf0844c1 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1384,7 +1384,7 @@ define( [ $btn = $btn.closest( ".ui-btn" ); } - if ( $btn.length > 0 && !( $btn.hasClass( $.mobile.activeBtnClass ) || $btn.hasClass( "ui-disabled" ) ) ) { + if ( $btn.length > 0 && !$btn.hasClass( "ui-disabled" ) ) { removeActiveLinkClass( true ); $activeClickedLink = $btn; $activeClickedLink.addClass( $.mobile.activeBtnClass ); From b618f6af1734154587cf2af3b9a39e06fae8e288 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 13 Dec 2012 15:23:23 +0200 Subject: [PATCH 08/52] Unit tests: event: $.each will no longer treat a comma-separated list as array-like - use concat instead. --- tests/unit/event/event_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/event/event_core.js b/tests/unit/event/event_core.js index 8f807a99993..c6e59ac9f10 100644 --- a/tests/unit/event/event_core.js +++ b/tests/unit/event/event_core.js @@ -15,7 +15,7 @@ setup: function(){ // ensure bindings are removed - $.each(events + "vmouseup vmousedown".split(" "), function(i, name){ + $.each( events.concat( "vmouseup vmousedown".split(" ") ), function(i, name){ $("#qunit-fixture").unbind(); }); From fe3ea40339156ef93bca8317a395c6de71ddfd6b Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 13 Dec 2012 16:59:32 +0200 Subject: [PATCH 09/52] Navigation: The first urlHistory entry cannot be a stale dialog hash state --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index c2caf0844c1..a7d5f409a17 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1132,7 +1132,7 @@ define( [ // However, if a dialog is already displayed at this point, and we're // about to display another dialog, then we must add another hash and // history entry on top so that one may navigate back to the original dialog - if ( active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) { + if ( urlHistory.activeIndex > 0 && active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) { settings.changeHash = false; alreadyThere = true; } From 7ab7cf8312dbdc20fcb2d03ee6546121a133a082 Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Tue, 11 Dec 2012 14:33:51 +0100 Subject: [PATCH 10/52] Added fallback for older browsers to swipe list demo CSS, changed a heading. --- docs/demos/swipe/swipe-list.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/demos/swipe/swipe-list.html b/docs/demos/swipe/swipe-list.html index ec17fc6755e..7467b70c193 100644 --- a/docs/demos/swipe/swipe-list.html +++ b/docs/demos/swipe/swipe-list.html @@ -124,7 +124,10 @@ } /* Custom styling for the popup */ #confirm { - border: 1px solid rgba(4,64,98,.4); + border: 1px solid; + border-color: #044062; /* Fallback for older browsers */ + border-color: rgba(4,64,98,.4); + background: #456f9a; /* Fallback for older browsers */ background: rgba(69,111,154,.8); -moz-box-shadow: 0 2px 6px rgba(69,111,154,.5), inset 0 1px rgba(255,255,255,.3), inset 0 6px rgba(255,255,255,.1), inset 0 10px 20px rgba(255,255,255,.25), inset 0 -15px 30px rgba(69,111,154,.3); -webkit-box-shadow: 0 2px 6px rgba(69,111,154,.5), inset 0 1px rgba(255,255,255,.3), inset 0 6px rgba(255,255,255,.1), inset 0 10px 20px rgba(255,255,255,.25), inset 0 -15px 30px rgba(69,111,154,.3); @@ -163,7 +166,7 @@

          Swipe list demo

          -

          Using swipe event to remove a list item

          +

          Swipe to remove a list item

          This demo shows how you can remove list items by swiping left or right. For devices without touchscreen there is a delete button. This demo also contains a custom styled confirmation popup.

          From 81545e5fab643d9479454af2f91d081ddbb1b915 Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Wed, 12 Dec 2012 08:31:37 +0100 Subject: [PATCH 11/52] Removed unwanted class from fullscreen fixed toolbars page in docs. --- docs/toolbars/bars-fullscreen.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/toolbars/bars-fullscreen.html b/docs/toolbars/bars-fullscreen.html index 683f7b8eab4..345733f2532 100644 --- a/docs/toolbars/bars-fullscreen.html +++ b/docs/toolbars/bars-fullscreen.html @@ -58,7 +58,7 @@

          More in this section

          -