mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Feature #3182: Disable create button if no template is selected in VM creation
This commit is contained in:
parent
b9e52f0236
commit
42e94cc79f
@ -427,7 +427,7 @@ define(function(require) {
|
||||
return false;
|
||||
})
|
||||
|
||||
$('#' + customId + 'submit_button', actionBlock).on("click", function() {
|
||||
$('.submit_button', actionBlock).on("click", function() {
|
||||
_submitFormPanel(tabName);
|
||||
return false;
|
||||
})
|
||||
@ -828,7 +828,6 @@ define(function(require) {
|
||||
function _showFormPanel(tabId, formPanelId, action, onShow2) {
|
||||
var context = $("#" + tabId);
|
||||
_popFormPanelLoading(tabId);
|
||||
_enableFormPanelSubmit(tabId);
|
||||
_showFormPanelSubmit(tabId);
|
||||
|
||||
setTimeout(function() {
|
||||
@ -897,6 +896,8 @@ define(function(require) {
|
||||
$(".sunstone-form-title", context).text(Locale.tr("Submitting..."));
|
||||
$(".submit_button", context).text(Locale.tr("Submitting..."));
|
||||
|
||||
_disableFormPanelSubmit(tabId);
|
||||
|
||||
setTimeout(function() {
|
||||
var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel
|
||||
|
||||
@ -910,7 +911,6 @@ define(function(require) {
|
||||
|
||||
var _resetFormPanel = function(tabId, formPanelId) {
|
||||
_popFormPanelLoading(tabId);
|
||||
_enableFormPanelSubmit(tabId);
|
||||
|
||||
setTimeout(function() {
|
||||
var formPanelInstance;
|
||||
@ -965,6 +965,7 @@ define(function(require) {
|
||||
$("div[form-panel-id="+formPanelInstance.formPanelId+"]", context).fadeIn();
|
||||
}
|
||||
|
||||
_enableFormPanelSubmit(tabId);
|
||||
}
|
||||
|
||||
function _hideFormPanel(tabId) {
|
||||
@ -984,6 +985,7 @@ define(function(require) {
|
||||
|
||||
$(".sunstone-form-title", context).text(Locale.tr("Loading..."));
|
||||
$(".submit_button", context).text(Locale.tr("Loading..."));
|
||||
_disableFormPanelSubmit(tabId);
|
||||
|
||||
$(".tabs-contentForm", context).hide();
|
||||
$(".loadingForm", context).show();
|
||||
|
@ -252,7 +252,7 @@ define(function(require) {
|
||||
|
||||
idsDone += 1;
|
||||
if (idsLength == idsDone){
|
||||
Sunstone.enableFormPanelSubmit(TAB_ID);
|
||||
Sunstone.enableFormPanelSubmit(that.tabId);
|
||||
}
|
||||
},
|
||||
error: function(request, error_json, container) {
|
||||
@ -264,7 +264,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _onShow(context) {
|
||||
Sunstone.disableFormPanelSubmit(TAB_ID);
|
||||
Sunstone.disableFormPanelSubmit(this.tabId);
|
||||
|
||||
$("input.instantiate_pers", context).change();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user