Skip to content

Commit

Permalink
Fixed mustardBees#11, and removed second unused parameter from saniti…
Browse files Browse the repository at this point in the history
…se method.

Fixed mustardBees#11 to allow users to edit the gallery, and removed second unused parameter from sanitise method.
  • Loading branch information
jonlambert committed Jul 15, 2015
1 parent c0a99eb commit b692502
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
var instance = this;

$('input[type=button]', instance).click(function() {
console.log($('input[type=hidden]', instance).val())
var gallerysc = '[gallery ids="' + $('input[type=hidden]', instance).val() + '"]';
wp.media.gallery.edit(gallerysc).on('update', function(g) {
var id_array = [];
Expand All @@ -12,4 +11,4 @@
});
});
});
}(jQuery));
}(jQuery));

0 comments on commit b692502

Please sign in to comment.