Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/99744


Change subject: No 'Show extended details' for file metadata without extra 
details
......................................................................

No 'Show extended details' for file metadata without extra details

When a file has only default visible metadata, there is no need to allow
extending the optional metadata, because there are no.

Change-Id: I595fed425135c1e8dd341258633217428bcb4154
---
M resources/mediawiki.action/mediawiki.action.view.metadata.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/44/99744/1

diff --git a/resources/mediawiki.action/mediawiki.action.view.metadata.js 
b/resources/mediawiki.action/mediawiki.action.view.metadata.js
index ce3c674..9252d56 100644
--- a/resources/mediawiki.action/mediawiki.action.view.metadata.js
+++ b/resources/mediawiki.action/mediawiki.action.view.metadata.js
@@ -12,7 +12,7 @@
                        $table = $( '#mw_metadata' ),
                        $tbody = $table.find( 'tbody' );
 
-               if ( !$tbody.length ) {
+               if ( !$tbody.length || !$tbody.find( '.collapsable' ).length ) {
                        return;
                }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I595fed425135c1e8dd341258633217428bcb4154
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

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

Reply via email to