commit
b5c282872d
|
@ -340,6 +340,7 @@ define([
|
|||
Common.NotificationCenter.on({
|
||||
'modal:show': _onModalDialog.bind(this, 'open'),
|
||||
'modal:close': _onModalDialog.bind(this, 'close'),
|
||||
'modal:hide': _onModalDialog.bind(this, 'hide'),
|
||||
'uitheme:changed' : function (name) {
|
||||
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
|
||||
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));
|
||||
|
|
|
@ -115,7 +115,6 @@ define([
|
|||
},
|
||||
|
||||
onDlgBtnClick: function(event) {
|
||||
Common.NotificationCenter.trigger('modal:close', this);
|
||||
if ( this.handler ) {
|
||||
this.handler.call(this, event.currentTarget.attributes['result'].value);
|
||||
return;
|
||||
|
@ -124,7 +123,6 @@ define([
|
|||
},
|
||||
|
||||
onToolClose: function() {
|
||||
Common.NotificationCenter.trigger('modal:close', this);
|
||||
if ( this.handler ) {
|
||||
this.handler.call(this, 'cancel');
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue