From 516d0168c3d27a9865122513fff677721ba00453 Mon Sep 17 00:00:00 2001 From: MatmaRex Date: Thu, 28 Nov 2013 21:57:01 +0100 Subject: [PATCH] File usage dialog: Only reselect on focus, not on every click Makes it possible to view the entire content of the box without copying the text somewhere else, or to only copy a part of the text. Change-Id: I8ed8beaadf7e515e57ee4f11bdaef9672c980f5b --- .../ext.multimediaViewer.lightboxinterface.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/ext.multimediaViewer/ext.multimediaViewer.lightboxinterface.js b/resources/ext.multimediaViewer/ext.multimediaViewer.lightboxinterface.js index 361ea640c..3acae011f 100644 --- a/resources/ext.multimediaViewer/ext.multimediaViewer.lightboxinterface.js +++ b/resources/ext.multimediaViewer/ext.multimediaViewer.lightboxinterface.js @@ -260,7 +260,7 @@ .prop( 'type', 'text' ) .prop( 'id', owtId ) .prop( 'readonly', true ) - .click( selectAllOnEvent ) + .focus( selectAllOnEvent ) .val( '[[' + filename + '|thumb|' + desc + ']]' ), $onWikiThumb = $( '
' ) @@ -276,7 +276,7 @@ .prop( 'type', 'text' ) .prop( 'id', ownId ) .prop( 'readonly', true ) - .click( selectAllOnEvent ) + .focus( selectAllOnEvent ) .val( '[[' + filename + '|' + desc + ']]' ), $onWikiNormal = $( '
' ) @@ -293,7 +293,7 @@ .prop( 'type', 'text' ) .prop( 'id', owId ) .prop( 'readonly', true ) - .click( selectAllOnEvent ) + .focus( selectAllOnEvent ) .val( '' ), $offWiki = $( '
' ) @@ -317,7 +317,7 @@ } } ); - $owtField.click(); + $owtField.focus(); return false; };