1
0
AntonLV 5 жил өмнө
parent
commit
d7fc4a9255

+ 3 - 2
inc/js/classes/BxDolLabel.js

@@ -47,7 +47,7 @@ BxDolLabel.prototype.selectLabels = function(oElement, sName, aParams)
 
 
 BxDolLabel.prototype.onSelectLabels = function(oData)
 BxDolLabel.prototype.onSelectLabels = function(oData)
 {
 {
-    if(!oData.name || !oData.content)
+    if(oData.name == undefined || oData.content == undefined)
         return;
         return;
 
 
     var oElement = $('#' + this._aHtmlIds['labels_element'] + oData.name + ' .bx-form-input-labels');
     var oElement = $('#' + this._aHtmlIds['labels_element'] + oData.name + ' .bx-form-input-labels');
@@ -55,7 +55,8 @@ BxDolLabel.prototype.onSelectLabels = function(oData)
         return;
         return;
 
 
     oElement.find('b.val:not(.val-placeholder)').remove();
     oElement.find('b.val:not(.val-placeholder)').remove();
-    oElement.prepend(oData.content);
+    if(oData.content.length > 0)
+        oElement.prepend(oData.content);
 };
 };
 
 
 BxDolLabel.prototype.showSublist = function(oLink)
 BxDolLabel.prototype.showSublist = function(oLink)