Guest User

Untitled

a guest
Dec 11th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.62 KB | None | 0 0
  1. --- untitled
  2. +++ (clipboard)
  3. @@ -1,5 +1,5 @@
  4.  // Handles toggling a category on/off when the category is pre-existing
  5. -$('#category-menu input.category-toggle').change(function () {
  6. +$('.category-metabox input[type=checkbox]').change(function () {
  7.     if (!this.checked) return true;
  8.     var id,details = new Array();
  9.  
  10. @@ -8,7 +8,7 @@
  11.         details.push($(item).val());
  12.     });
  13.  
  14. -   id = $(this).attr('id').substr($(this).attr('id').indexOf("-")+1);
  15. +   id = $(this).val();
  16.     // Load category spec templates
  17.     $.getJSON(spectemp_url+'&action=shopp_spec_template&category='+id,function (speclist) {
  18.         if (!speclist) return true;
Add Comment
Please, Sign In to add comment