">
-
+
|
" onclick="$ItemCategories.DeleteCategory();"/>
Index: platform/inc/script.js
===================================================================
--- platform/inc/script.js (revision 13571)
+++ platform/inc/script.js (working copy)
@@ -61,7 +61,7 @@
ItemCategories.prototype.AddCategory = function($separator, $delete_button, $max_categories) {
var $category_id = this.CategorySelector.options[this.CategorySelector.selectedIndex].value;
- var $category_name = this.CategorySelector.options[this.CategorySelector.selectedIndex].innerHTML.trim();
+ var $category_name = this.CategorySelector.options[this.CategorySelector.selectedIndex].getAttribute('full_path');
if ((this.SearchCategory($category_id) !== false) || ($category_id == this.PrimaryCategory) || ($category_id == 0)) {
// don't add same category twice & don't allow to add item's primary category
@@ -76,13 +76,6 @@
return ;
}
- // strip trailing HTML spaces & separator
- var $separator_pos = $category_name.indexOf($separator);
- if ($separator_pos != -1) {
- $category_name = $category_name.substring($separator_pos + $separator.length);
- }
-
-
var $row = this.CategoryTable.insertRow(-1);
$row.id = 'category_' + $category_id;
|