Sha256: dc21291496d3a34bce3cdb68fef7accdd04ea7a8dc801e88286566d89fb352fc
Contents?: true
Size: 897 Bytes
Versions: 82
Compression:
Stored size: 897 Bytes
Contents
I"u(function() { $(function() { return $('table.dragtable').dragtable({ persistState: function(table) { var ss; if (!window.sessionStorage) { return; } ss = window.sessionStorage; table.el.find('th').each(function(i) { if (this.id !== '') { table.sortOrder[this.id] = i; } }); ss.setItem("column-order." + window.location.pathname, JSON.stringify(table.sortOrder)); console.log(ss); }, restoreState: eval('(' + window.sessionStorage.getItem("column-order." + window.location.pathname) + ')') }); }); $(function() { return $('[data-reset-column-order]').on('click', function(e) { window.sessionStorage.removeItem("column-order." + window.location.pathname); window.location.reload(); return false; }); }); }).call(this); :ET
Version data entries
82 entries across 34 versions & 3 rubygems