Fix buggy yellow alert bar at top of admin page.

One of the alert rows Was missing a "-status" at the end.

While we're fixing this, make it more robust by adding .expectOne().

(imported from commit 8cb0a560701e2ee48f78471ef8fe5cfa060782af)
This commit is contained in:
Tim Abbott 2015-09-19 22:54:03 -07:00
parent f340778798
commit 176e3f4a54
1 changed files with 5 additions and 5 deletions

View File

@ -80,11 +80,11 @@ exports.setup_page = function () {
};
var admin_tab = templates.render('admin_tab', options);
$("#administration").html(admin_tab);
$("#administration-status").hide();
$("#admin-realm-name-status").hide();
$("#admin-realm-restricted-to-domain-status").hide();
$("#admin-realm-invite-required-status").hide();
$("#admin-realm-invite-by-admins-only").hide();
$("#administration-status").expectOne().hide();
$("#admin-realm-name-status").expectOne().hide();
$("#admin-realm-restricted-to-domain-status").expectOne().hide();
$("#admin-realm-invite-required-status").expectOne().hide();
$("#admin-realm-invite-by-admins-only-status").expectOne().hide();
// create loading indicators
loading.make_indicator($('#admin_page_users_loading_indicator'));