mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Remove tooltip for view-file
Change-Id: I89b2dfd43ea18a2e1fe9d2214b76218b24ce88cb Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/886
This commit is contained in:
parent
b5a71b8800
commit
a82dfd6eb0
|
@ -330,7 +330,6 @@ $wgResourceModules += array(
|
|||
),
|
||||
|
||||
'messages' => array(
|
||||
'multimediaviewer-viewfile-link',
|
||||
'multimediaviewer-thumbnail-error',
|
||||
),
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
"multimediaviewer-geoloc-coords": "$1, $2",
|
||||
"multimediaviewer-geolocation": "Location: $1",
|
||||
"multimediaviewer-reuse-link": "Use this file",
|
||||
"multimediaviewer-viewfile-link": "View original file",
|
||||
"multimediaviewer-reuse-loading-placeholder": "Loading…",
|
||||
"multimediaviewer-share-tab": "Share",
|
||||
"multimediaviewer-embed-tab": "Embed",
|
||||
|
|
|
@ -149,16 +149,10 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* Registers click listener on the image, and a tooltip.
|
||||
* Registers click listener on the image.
|
||||
*/
|
||||
C.setUpImageClick = function () {
|
||||
var tooltipDelay = mw.config.get( 'wgMultimediaViewer').tooltipDelay;
|
||||
|
||||
this.$image
|
||||
.prop( 'title', mw.message( 'multimediaviewer-viewfile-link' ) )
|
||||
.tipsy( {
|
||||
delayIn: tooltipDelay
|
||||
} )
|
||||
.on( 'click.mmv-view-original', function () {
|
||||
mw.mmv.actionLogger.log( 'view-original-file' ).always( function() {
|
||||
$( document ).trigger( 'mmv-viewfile' );
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
assert.strictEqual( canvas.$image, $imageElem, 'Image element set correctly.' );
|
||||
assert.strictEqual( canvas.imageRawMetadata, imageRawMetadata, 'Raw metadata set correctly.' );
|
||||
assert.strictEqual( canvas.$imageDiv.html(), '<img original-title="View original file">', 'Image added to container.' );
|
||||
assert.strictEqual( canvas.$imageDiv.html(), '<img>', 'Image added to container.' );
|
||||
assert.ok( !canvas.$imageDiv.hasClass( 'empty' ), 'Canvas is visible.' );
|
||||
|
||||
canvas.empty();
|
||||
|
|
Loading…
Reference in a new issue