mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Fix #1640 double escape in category list
This commit is contained in:
parent
c5aaf45c24
commit
0976e7fa94
1 changed files with 4 additions and 6 deletions
|
|
@ -206,9 +206,8 @@ function doGetCategoryFromModule(module_srl) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeGetCategoryFromModules(ret_obj, response_tags) {
|
function completeGetCategoryFromModules(ret_obj, response_tags) {
|
||||||
var obj = jQuery('#target_category').get(0);
|
var obj = $('#target_category');
|
||||||
var length = obj.options.length;
|
obj.find('option').remove();
|
||||||
for(var i=0;i<length;i++) obj.remove(0);
|
|
||||||
|
|
||||||
var categories = ret_obj['categories'];
|
var categories = ret_obj['categories'];
|
||||||
if(!categories) return;
|
if(!categories) return;
|
||||||
|
|
@ -231,9 +230,8 @@ function completeGetCategoryFromModules(ret_obj, response_tags) {
|
||||||
if(!category_srl || !category_title) continue;
|
if(!category_srl || !category_title) continue;
|
||||||
|
|
||||||
if (depth > 0) category_title = depth_str.substr(0, depth) + ' ' + category_title;
|
if (depth > 0) category_title = depth_str.substr(0, depth) + ' ' + category_title;
|
||||||
var opt = new Option(category_title, category_srl, false, false);
|
obj.append('<option value="' + category_srl + '">' + category_title.escape(false) + '</option>');
|
||||||
obj.options[obj.options.length] = opt;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkSearch(form)
|
function checkSearch(form)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue