jenkins-bot has submitted this change and it was merged.

Change subject: window now sets the component to loading when ok is clicked
......................................................................


window now sets the component to loading when ok is clicked

Change-Id: I75efab916597761bda1fc30ff4c7d9cffbb4281c
---
M resources/bluespice.extjs/BS/Window.js
1 file changed, 9 insertions(+), 3 deletions(-)

Approvals:
  Robert Vogel: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/bluespice.extjs/BS/Window.js 
b/resources/bluespice.extjs/BS/Window.js
index 796b6f6..6a29464 100755
--- a/resources/bluespice.extjs/BS/Window.js
+++ b/resources/bluespice.extjs/BS/Window.js
@@ -70,9 +70,15 @@
        afterInitComponent: function() {
                
        },
-       onBtnOKClick: function() {
-               this.fireEvent( 'ok', this, this.getData() );
-               this.close();
+       show: function () {
+               this.setLoading( false );
+               this.callParent( arguments );
+       },
+       onBtnOKClick: function () {
+               this.setLoading( true );
+               if ( this.fireEvent( 'ok', this, this.getData() ) ) {
+                       this.close();
+               }
        },
        onBtnCancelClick: function() {
                this.resetData();

-- 
To view, visit https://gerrit.wikimedia.org/r/233675
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I75efab916597761bda1fc30ff4c7d9cffbb4281c
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Tweichart <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to