[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/assets/js/ -> translations-page.min.js (source)

   1  jQuery(function(s){var e=s(".bulk-action"),i=s(".bulk-priority");$gp.showhide("#upper-filters-toolbar a.sort","#upper-filters-toolbar .filters-expanded.sort",{show_text:$gp_translations_options.sort+" &darr;",hide_text:$gp_translations_options.sort+" &uarr;",focus:"#sort\\[by\\]\\[original_date_added\\]"}),$gp.showhide("#upper-filters-toolbar a.filter","#upper-filters-toolbar .filters-expanded.filters",{show_text:$gp_translations_options.filter+" &darr;",hide_text:$gp_translations_options.filter+" &uarr;",focus:"#filters\\[term\\]"}),e.on("change",function(){var t=s("option:selected",this);e.val(t.val()),"set-priority"===t.val()?i.removeClass("hidden"):i.addClass("hidden")}),s("form.filters-toolbar.bulk-actions").submit(function(t){var e=s("input:checked",s("table#translations th.checkbox")).map(function(){return s(this).parents("tr.preview").attr("row")}).get().join(",");s('input[name="bulk[row-ids]"]',s(this)).val(e)}),s("a#export").click(function(){var t=s("#export-format").val(),e="";if("filtered"==s("#what-to-export").val()){var i=-1==s(this).attr("filters").indexOf("?")?"?":"&";e=s(this).attr("filters")+i+"format="+t}else e=s(this).attr("href")+"?format="+t;return window.location=e,!1});var n=!1;s("tbody").children().children(".checkbox").find(":checkbox").click(function(t){var e,i,r,o;if("undefined"==t.shiftKey)return!0;if(t.shiftKey){if(!n)return!0;i=(e=s(n).closest("table").find(":checkbox")).index(n),r=e.index(this),o=s(this).prop("checked"),0<i&&0<r&&i!=r&&(i<r?e.slice(i,r):e.slice(r,i)).prop("checked",function(){return!!s(this).closest("tr").is(":visible")&&o})}return n=this,!0}),s("thead, tfoot").find(".checkbox :checkbox").click(function(t){var e=s(this).prop("checked"),i="undefined"!=typeof toggleWithKeyboard&&toggleWithKeyboard,r=t.shiftKey||i;s(this).closest("table").children("tbody").filter(":visible").children().children(".checkbox").find(":checkbox").prop("checked",function(){return!s(this).closest("tr").is(":hidden")&&(r?s(this).prop("checked"):!!e)}),s(this).closest("table").children("thead,  tfoot").filter(":visible").children().children(".checkbox").find(":checkbox").prop("checked",function(){return!r&&!!e})})});


Generated: Wed Nov 25 01:01:57 2020 Cross-referenced by PHPXref 0.7.1