Permalink
Browse files

Table: Expose unlock()

  • Loading branch information...
gabrielschulhof authored and arschmitz committed May 19, 2014
1 parent 151b676 commit c47a80d86c35abe32a971f9659f97ac676477904
Showing with 6 additions and 4 deletions.
  1. +6 −4 js/widgets/table.columntoggle.js
@@ -191,11 +191,13 @@ return $.widget( "mobile.table", $.mobile.table, {
.toggleClass( "ui-table-cell-visible", checked );
},
_unlockCells: function() {
unlock: function() {
// allow hide/show via CSS only = remove all toggle-locks
this.element
.find( ".ui-table-cell-hidden, .ui-table-cell-visible" )
.removeClass( "ui-table-cell-hidden ui-table-cell-visible" );
.children( "thead, tbody" )
.children( "tr" )
.children( ".ui-table-cel-hidden, .ui-table-cell-visible" )
.removeClass( "ui-table-cell-hidden ui-table-cell-visible" );
},
_enhanceColToggle: function() {
@@ -305,7 +307,7 @@ return $.widget( "mobile.table", $.mobile.table, {
lockedColumns = this._recordLockedColumns();
// columns not being replaced must be cleared from input toggle-locks
this._unlockCells();
this.unlock();
// update columntoggles and cells
this._addToggles( this._ui.menu, false );

0 comments on commit c47a80d

Please sign in to comment.