Tweichart has uploaded a new change for review. https://gerrit.wikimedia.org/r/152218
Change subject: added hooks for details window expansion ...................................................................... added hooks for details window expansion Change-Id: Id425e7c332de11fe5a2aa65e3dd64aaff20b6fde --- M InsertFile/resources/BS.InsertFile/BaseDialog.js M InsertFile/resources/BS.InsertFile/FileDialog.js M InsertFile/resources/BS.InsertFile/ImageDialog.js 3 files changed, 12 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/18/152218/1 diff --git a/InsertFile/resources/BS.InsertFile/BaseDialog.js b/InsertFile/resources/BS.InsertFile/BaseDialog.js index 8968cd9..779273e 100644 --- a/InsertFile/resources/BS.InsertFile/BaseDialog.js +++ b/InsertFile/resources/BS.InsertFile/BaseDialog.js @@ -160,6 +160,7 @@ this.configPanel.items.unshift(this.tfFileName); this.pnlConfig = Ext.create('Ext.form.Panel', this.configPanel ); + this.pnlConfig.on('expand', this.onPnlExpand, this); this.items = [ this.gdImages, @@ -176,6 +177,10 @@ } }, + onPnlExpand: function(panel, eOpts){ + $(document).trigger("onBsInsertFilePanelExpand", [this, panel, eOpts]); + }, + btnUploadClick: function( sender, event ) { this.dlgUpload.show(); }, diff --git a/InsertFile/resources/BS.InsertFile/FileDialog.js b/InsertFile/resources/BS.InsertFile/FileDialog.js index 2601a92..56059f5 100644 --- a/InsertFile/resources/BS.InsertFile/FileDialog.js +++ b/InsertFile/resources/BS.InsertFile/FileDialog.js @@ -13,5 +13,8 @@ //two instances of BS.InsertFile.BaseDialog subclasses this.configPanel.items = []; this.callParent(arguments); - } + }, + onPnlExpand: function(panel, eOpts){ + this.callParent(arguments); + }, }); \ No newline at end of file diff --git a/InsertFile/resources/BS.InsertFile/ImageDialog.js b/InsertFile/resources/BS.InsertFile/ImageDialog.js index fa5ab34..66eac37 100644 --- a/InsertFile/resources/BS.InsertFile/ImageDialog.js +++ b/InsertFile/resources/BS.InsertFile/ImageDialog.js @@ -177,6 +177,9 @@ } this.callParent(arguments); }, + onPnlExpand: function(panel, eOpts){ + this.callParent(arguments); + }, onNbHeightChange: function( element, event ) { if (this.btnKeepRatio.pressed && !this.isSetData) { this.nbWidth.setValue(this.processRatio(0, element.lastValue)); -- To view, visit https://gerrit.wikimedia.org/r/152218 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id425e7c332de11fe5a2aa65e3dd64aaff20b6fde Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Tweichart <weich...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits