All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-js.butterfaces-table.jquery.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
!function(e){e.fn.selectTableRow=function(t){return this.each(function(){var n=e(this);console.log("Selected row: "+t.rowIndex),console.log(n.find("tr[rowindex="+t.rowIndex+"]")),n.find("tr").removeClass("butter-table-row-selected");var r=n.find("tr[rowindex="+t.rowIndex+"]");e(r[r.length-1]).addClass("butter-table-row-selected")})}}(jQuery),function(e){e.fn.sortTableRow=function(t,n,r){return this.each(function(){var o=e(this);ButterFaces.Ajax.sendRequest(o.attr("id"),"sort_"+r,t,r,n)})}}(jQuery);
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXRhYmxlLmpxdWVyeS50cyJdLCJuYW1lcyI6WyIkIiwiZm4iLCJzZWxlY3RUYWJsZVJvdyIsImRhdGEiLCJ0aGlzIiwiZWFjaCIsIiRvcmlnaW5hbEVsZW1lbnQiLCJjb25zb2xlIiwibG9nIiwicm93SW5kZXgiLCJmaW5kIiwicmVtb3ZlQ2xhc3MiLCJsaXN0SXRlbXMiLCJsZW5ndGgiLCJhZGRDbGFzcyIsImpRdWVyeSIsInNvcnRUYWJsZVJvdyIsInJlbmRlcklkcyIsImRpc2FibGVSZW5kZXJJZHMiLCJjb2x1bW5OdW1iZXIiLCIkdGFibGUiLCJCdXR0ZXJGYWNlcyIsIkFqYXgiLCJzZW5kUmVxdWVzdCIsImF0dHIiXSwibWFwcGluZ3MiOiJDQUdDLFNBQVVBLEdBQ1BBLEVBQUVDLEdBQUdDLGVBQWlCLFNBQVVDLEdBRTVCLE9BQU9DLEtBQUtDLEtBQUssV0FDYixJQUFJQyxFQUFtQk4sRUFBRUksTUFFekJHLFFBQVFDLElBQUksaUJBQW1CTCxFQUFLTSxVQUNwQ0YsUUFBUUMsSUFBSUYsRUFBaUJJLEtBQUss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informatics LLC | Privacy Policy