Remove tooltip for view-file

Change-Id: I89b2dfd43ea18a2e1fe9d2214b76218b24ce88cb
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/886
This commit is contained in:
Mark Holmquist 2014-09-11 10:39:19 -07:00
parent b5a71b8800
commit a82dfd6eb0
4 changed files with 2 additions and 10 deletions

View file

@ -330,7 +330,6 @@ $wgResourceModules += array(
),
'messages' => array(
'multimediaviewer-viewfile-link',
'multimediaviewer-thumbnail-error',
),

View file

@ -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",

View file

@ -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' );

View file

@ -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();