mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Updating the category was not updating the UI
This commit is contained in:
parent
b1da9ac875
commit
e912b698ac
7 changed files with 60 additions and 21 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue