Чекбокс "Выбрать все" при модерировании темы и форума (Alex_63)
Для форумов Quadroboards скрипт неактуален - чекбоксы добавляются от сервиса.
В HTML низ:
В HTML низ:
Код
<!-- Чекбокс "Выбрать все" при модерировании темы и форума © Alex_63 -->
<style>.modmenu #CheckAll{margin-left:0.7em!important}</style><script type="text/javascript">if($('#pun-modviewforum').length){$('th.tcmod').html('<input type="checkbox" id="CheckAll" title="Выбрать все">');$('#CheckAll').click(function(){if($('#CheckAll').attr('checked')){$(this).parents('table').find('td.tcmod input[type="checkbox"]').attr('checked',true);}else{$(this).parents('table').find('td.tcmod input[type="checkbox"]').attr('checked',false);}});}else if(GroupID<=2 && $('.punbb[id^="pun-multi"]').length){$('.modmenu .button').before('<span>Выбрать все</span><input type="checkbox" id="CheckAll" title="Выбрать все">');$('#CheckAll').click(function(){if($('#CheckAll').attr('checked')){$(this).parents('#pun-main').find('.pl-select input[type="checkbox"]').attr('checked',true);}else{$(this).parents('#pun-main').find('.pl-select input[type="checkbox"]').attr('checked',false);}});}</script>
<!-- //END// -Чекбокс "Выбрать все" при модерировании темы и форума -->
<style>.modmenu #CheckAll{margin-left:0.7em!important}</style><script type="text/javascript">if($('#pun-modviewforum').length){$('th.tcmod').html('<input type="checkbox" id="CheckAll" title="Выбрать все">');$('#CheckAll').click(function(){if($('#CheckAll').attr('checked')){$(this).parents('table').find('td.tcmod input[type="checkbox"]').attr('checked',true);}else{$(this).parents('table').find('td.tcmod input[type="checkbox"]').attr('checked',false);}});}else if(GroupID<=2 && $('.punbb[id^="pun-multi"]').length){$('.modmenu .button').before('<span>Выбрать все</span><input type="checkbox" id="CheckAll" title="Выбрать все">');$('#CheckAll').click(function(){if($('#CheckAll').attr('checked')){$(this).parents('#pun-main').find('.pl-select input[type="checkbox"]').attr('checked',true);}else{$(this).parents('#pun-main').find('.pl-select input[type="checkbox"]').attr('checked',false);}});}</script>
<!-- //END// -Чекбокс "Выбрать все" при модерировании темы и форума -->
Просмотров: 665, Загрузок: 0, Оценка: 5.0 (1)
Страницы: | |