mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #3385: Fix bug when dialog has only one button
(cherry picked from commit da57137541)
This commit is contained in:
1 parent
0507b4d8bd
commit
343785497e
1 file changed
+5
-9
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user