jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/395828 )

Change subject: Moved "Hide" link for minimized text to beginning of text
......................................................................


Moved "Hide" link for minimized text to beginning of text

Change-Id: Ic0a9e0fc73de129f6af8f8548257901051951f5a
---
M libs/Cargo.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Yaron Koren: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/libs/Cargo.js b/libs/Cargo.js
index fce9838..022f361 100644
--- a/libs/Cargo.js
+++ b/libs/Cargo.js
@@ -13,11 +13,11 @@
 
 $('span.cargoMinimizedText')
        .hide()
-       .parent().append('<a class="cargoToggle">' + showText + '</a>');
+       .parent().prepend('<a class="cargoToggle">' + showText + '</a> ');
 
 $('a.cargoToggle').click( function() {
        if ( $(this).text() == showText ) {
-               $(this).siblings('.cargoMinimizedText').show(400);
+               
$(this).siblings('.cargoMinimizedText').show(400).css('display', 'inline');
                $(this).text(hideText);
        } else {
                $(this).siblings('.cargoMinimizedText').hide(400);

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic0a9e0fc73de129f6af8f8548257901051951f5a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <yaro...@gmail.com>
Gerrit-Reviewer: Yaron Koren <yaro...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to