fix bad merge / dupe code

v1.18.x
psychobunny 8 years ago
parent dd90b14d64
commit dcbe4864a9

@ -12,20 +12,6 @@ define('admin/manage/category', [
var modified_categories = {};
Category.init = function () {
var modified_categories = {};
function modified(el) {
var cid = $(el).parents('form').attr('data-cid');
if (cid) {
modified_categories[cid] = modified_categories[cid] || {};
modified_categories[cid][$(el).attr('data-name')] = $(el).val();
app.flags = app.flags || {};
app.flags._unsaved = true;
}
}
$('.blockclass, form.category select').each(function () {
var $this = $(this);
$this.val($this.attr('data-value'));

Loading…
Cancel
Save