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

Version Path
itsf_backend-5.0.0.pre spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-5.0.0.pre spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-5.0.0.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
ecm_user_area2-4.0.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-4.0.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.1.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.0.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.0.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.0.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
ecm_user_area2-3.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqtnnYWwak38tqo9KH7J0Y9xCXiPJLi3gSEN2qTEVjE.cache
itsf_backend-4.2.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.3 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.3 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.2 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache
itsf_backend-4.2.1 spec/dummy/tmp/cache/assets/test/sprockets/v3.0/2sjCIOAke4BBgx2thk4Ow0BrCT4ZTZn5zBlznu_nRds.cache