From 5020e864fc75a07c480cc78864ebc8f9ac9838a3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 25 Feb 2015 18:52:26 -0500 Subject: [PATCH] #2779 also copy icon --- public/src/admin/manage/categories.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/src/admin/manage/categories.js b/public/src/admin/manage/categories.js index 18d3d338a2..9d310ae594 100644 --- a/public/src/admin/manage/categories.js +++ b/public/src/admin/manage/categories.js @@ -199,7 +199,14 @@ define('admin/manage/categories', [ data = {}; inputs.each(function() { - data[$(this).attr('data-name')] = $(this).val(); + var name = $(this).attr('data-name'); + switch (name) { + case 'icon': + data[name] = $(this).attr('value'); + break; + default: + data[name] = $(this).val(); + } }); saveNew(data);