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