From 28459d04c61766b4a96be86c2b3a7eef98bbb7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 3 Jan 2019 13:08:42 -0500 Subject: [PATCH] fix: #7187 --- public/src/admin/manage/category.js | 13 +++---------- src/views/admin/manage/category.tpl | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/public/src/admin/manage/category.js b/public/src/admin/manage/category.js index 31d0b0a6ef..6a8372dc88 100644 --- a/public/src/admin/manage/category.js +++ b/public/src/admin/manage/category.js @@ -39,16 +39,9 @@ define('admin/manage/category', [ handleTags(); - $('#category-settings input, #category-settings select').not($('.privilege-table-container input')) - .on('change', function (ev) { - modified(ev.target); - }) - .on('keydown', function (ev) { - if (ev.which === 13) { - ev.preventDefault(); - return false; - } - }); + $('#category-settings input, #category-settings select').on('change', function (ev) { + modified(ev.target); + }); $('[data-name="imageClass"]').on('change', function () { $('.category-preview').css('background-size', $(this).val()); diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tpl index 79a19664d7..4b70b1f8a2 100644 --- a/src/views/admin/manage/category.tpl +++ b/src/views/admin/manage/category.tpl @@ -1,4 +1,4 @@ -
+