Fix undefined element in select dropdown menus

This commit is contained in:
yflory
2017-06-12 14:23:06 +02:00
parent 298e34a9de
commit 30bdb9881c
2 changed files with 4 additions and 4 deletions

View File

@@ -1197,10 +1197,10 @@ define([
}, 1000);
});
$container.setValue = function (val) {
$container.setValue = function (val, name) {
value = val;
var $val = $innerblock.find('[data-value="'+val+'"]');
var textValue = $val.html() || val;
var textValue = name || $val.html() || val;
$button.find('.buttonTitle').html(textValue);
};
$container.getValue = function () {