Moved jqueryui dialog creation to a shared module along with textarea auto-sizing. Inventory host edit dialog is now constructed using this new module. Fixed host enabled flag on the host edit dialog so that it is disabled for externally managed hosts.

This commit is contained in:
Chris Houseknecht
2014-03-20 12:25:20 -04:00
parent 6f11502528
commit 1bc9ab68eb
9 changed files with 300 additions and 36 deletions
+11
View File
@@ -703,8 +703,19 @@ function(SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize) {
// remove lingering popover <div> elements
$(this).remove();
});
if (properties_scope.codeMirror) {
properties_scope.codeMirror.destroy();
}
if (sources_scope.codeMirror) {
sources_scope.codeMirror.destroy();
}
$('#group-modal-dialog').dialog('destroy');
$('#group-modal-dialog').hide();
$('#properties-tab').empty();
$('#sources-tab').empty();
$('#schedules-list').empty();
$('#schedules-form').empty();
$('#schedules-detail').empty();
modal_scope.cancelModal();
},
open: function () {