partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit ee2b10ab3bb3241e9f64675de004c2cf8f6753b8
parent 2718c4ae8088ce0af63eef6171231a9b9acb12a5
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 29 Mar 2015 23:08:10 +0200

Previously, when the user clicked the "X" button or hit ESC, the window would hide, not close. This would not re-open the window. Use closeAction: hide instead of the default closeAction: close.

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/ExceptionWindow.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/ExceptionWindow.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Dialogs/ExceptionWindow.js @@ -4,6 +4,7 @@ Ext.define('PartKeepr.ExceptionWindow', { extend: 'Ext.window.Window', resizable: true, + closeAction: 'hide', layout: 'fit', width: 500, autoHeight: true, @@ -37,7 +38,7 @@ Ext.define('PartKeepr.ExceptionWindow', { minHeight: 65, readOnly: true }); - + this.backtraceDetails = Ext.create('Ext.form.field.TextArea', { fieldLabel: i18n("Backtrace"), flex: 1, @@ -141,7 +142,6 @@ Ext.define('PartKeepr.ExceptionWindow', { * @param requestData The request data. May be empty. */ _showException: function (exception, requestData) { - console.log(exception); var separator = "=================================="; if (!requestData) { @@ -240,7 +240,7 @@ Ext.define('PartKeepr.ExceptionWindow', { if (!PartKeepr.ExceptionWindow.activeInstance) { PartKeepr.ExceptionWindow.activeInstance = new PartKeepr.ExceptionWindow(); } - + PartKeepr.ExceptionWindow.activeInstance._showException(exception, requestData); }