mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:41:17 +08:00
FIX: Updating the category was not updating the UI
This commit is contained in:
@ -28,6 +28,12 @@ function visible(selector) {
|
||||
return find(selector + ":visible").length > 0;
|
||||
}
|
||||
|
||||
Ember.Test.registerAsyncHelper('selectDropdown', function(app, selector, itemId) {
|
||||
var $select2 = find(selector);
|
||||
$select2.select2('val', itemId.toString());
|
||||
$select2.trigger("change");
|
||||
});
|
||||
|
||||
function invisible(selector) {
|
||||
var $items = find(selector + ":visible");
|
||||
return $items.length === 0 ||
|
||||
|
Reference in New Issue
Block a user