mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
fix bad merge / dupe code
This commit is contained in:
@@ -12,20 +12,6 @@ define('admin/manage/category', [
|
|||||||
var modified_categories = {};
|
var modified_categories = {};
|
||||||
|
|
||||||
Category.init = function () {
|
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 () {
|
$('.blockclass, form.category select').each(function () {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
$this.val($this.attr('data-value'));
|
$this.val($this.attr('data-value'));
|
||||||
|
|||||||
Reference in New Issue
Block a user