mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #3385: Fix bug when dialog has only one button
(cherry picked from commit da571375417b3efc3d40e0411e6f7ebd96051d67)
This commit is contained in:
parent
0507b4d8bd
commit
343785497e
@ -72,16 +72,12 @@ define(function(require) {
|
||||
function _setParams(params) {
|
||||
this.params = params;
|
||||
|
||||
if (this.params.buttons != undefined){
|
||||
if (!$.isArray(this.params.buttons)){
|
||||
this.params.buttons = [this.params.buttons];
|
||||
}
|
||||
if (this.params.buttons != undefined && !$.isArray(this.params.buttons)){
|
||||
this.params.buttons = [this.params.buttons];
|
||||
}
|
||||
|
||||
if (this.params.submit != undefined){
|
||||
if (!$.isArray(this.params.submit)){
|
||||
this.params.submit = [this.params.submit];
|
||||
}
|
||||
}
|
||||
if (this.params.submit != undefined && !$.isArray(this.params.submit)){
|
||||
this.params.submit = [this.params.submit];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user