Browse Source

#2539, update text before onChange

pull/2537/merge
jlukic 9 years ago
parent
commit
77a12579da
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/dropdown.js

4
src/definitions/modules/dropdown.js

@ -2158,8 +2158,8 @@ $.fn.dropdown = function(parameters) {
module.select.nextAvailable($selectedItem);
}
else {
module.add.value(selectedValue, selectedText, $selected);
module.set.text(module.add.variables(message.count));
module.add.value(selectedValue, selectedText, $selected);
$selected.addClass(className.active);
}
}
@ -2172,8 +2172,8 @@ $.fn.dropdown = function(parameters) {
if(settings.apiSettings && settings.saveRemoteData) {
module.save.remoteData(selectedText, selectedValue);
}
module.set.value(selectedValue, selectedText, $selected);
module.set.text(selectedText);
module.set.value(selectedValue, selectedText, $selected);
$selected
.addClass(className.active)
.addClass(className.selected)

Loading…
Cancel
Save