MarkTraceur has uploaded a new change for review.
https://gerrit.wikimedia.org/r/92760
Change subject: Clear entire interface
......................................................................
Clear entire interface
In the future, I'll have a nicer UI creation helper method that will
mark these as clearable and empty them for me. Until then...
Change-Id: I8a03040a294a4fec19cd7714d4219f5d571b0c48
---
M js/ext.multimediaViewer.js
1 file changed, 14 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultimediaViewer
refs/changes/60/92760/1
diff --git a/js/ext.multimediaViewer.js b/js/ext.multimediaViewer.js
index 02c9801..10feeac 100755
--- a/js/ext.multimediaViewer.js
+++ b/js/ext.multimediaViewer.js
@@ -284,8 +284,20 @@
} );
lightboxHooks.register( 'clearInterface', function () {
- this.$imageDesc.empty();
- this.$title.empty();
+ this.$imageDesc.empty().addClass( 'empty' );
+ this.$title.empty().addClass( 'empty' );
+ this.$credit.empty().addClass( 'empty' );
+
+ this.$username.empty();
+ this.$usernameLi.addClass( 'empty' );
+
+ this.$repo.empty();
+ this.$repoLi.addClass( 'empty' );
+
+ this.$datetime.empty();
+ this.$datetimeLi.addClass( 'empty' );
+
+ this.$license.empty().addClass( 'empty' );
viewer.currentImageFilename = null;
} );
--
To view, visit https://gerrit.wikimedia.org/r/92760
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a03040a294a4fec19cd7714d4219f5d571b0c48
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: MarkTraceur <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits