vitnet

input

Apr 18th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.0 Открыть файл engine/modules/profile.php
  2.  
  3. найти
  4.  
  5. function save_cat() {
  6.  
  7. заменить на
  8.  
  9. function save_cat() {
  10.     var val = [], i = 0;
  11.     $("input:checkbox[name='catlist[]']").each(function(){
  12.         if( $(this).is(':checked') == true ){
  13.             val[i] = $(this).val();
  14.             i++;
  15.         }
  16.     });
  17.  
  18. далее найти
  19.  
  20.     params['catlist'] = $('#category').val();
  21.  
  22. заменить на
  23.  
  24.     params['catlist'] = val;
Advertisement
Add Comment
Please, Sign In to add comment