{:uriI"file:///home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/table-column-sorting.coffee?type=application/javascript&pipeline=self&id=1dc4d478fbd6534ad1da099ce081740630a60d8828e9e4e330436379d9cb3fb3:ET:load_pathI"A/home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts;T: filenameI"v/home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/table-column-sorting.coffee;T: nameI"2itsf/backend/application/table-column-sorting;T:logical_pathI":itsf/backend/application/table-column-sorting.self.js;T:content_typeI"application/javascript;T: sourceI"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); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"file-digest:///home/vagrant/rails/itsf/itsf_backend/app/assets/javascripts/itsf/backend/application/table-column-sorting.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%x6Y6?v$:UTZ?8A3t: lengthiu:dependencies_digest"%/'4yrcK⁓>!~:idI"E1dc4d478fbd6534ad1da099ce081740630a60d8828e9e4e330436379d9cb3fb3;F: mtimel+IV