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
This commit is contained in:
MatmaRex 2013-11-28 21:57:01 +01:00 committed by MarkTraceur
parent 032ea9d958
commit 516d0168c3

View file

@ -260,7 +260,7 @@
.prop( 'type', 'text' )
.prop( 'id', owtId )
.prop( 'readonly', true )
.click( selectAllOnEvent )
.focus( selectAllOnEvent )
.val( '[[' + filename + '|thumb|' + desc + ']]' ),
$onWikiThumb = $( '<div>' )
@ -276,7 +276,7 @@
.prop( 'type', 'text' )
.prop( 'id', ownId )
.prop( 'readonly', true )
.click( selectAllOnEvent )
.focus( selectAllOnEvent )
.val( '[[' + filename + '|' + desc + ']]' ),
$onWikiNormal = $( '<div>' )
@ -293,7 +293,7 @@
.prop( 'type', 'text' )
.prop( 'id', owId )
.prop( 'readonly', true )
.click( selectAllOnEvent )
.focus( selectAllOnEvent )
.val( '<a href="' + link + '"><img src="' + src + '" /></a>' ),
$offWiki = $( '<div>' )
@ -317,7 +317,7 @@
}
} );
$owtField.click();
$owtField.focus();
return false;
};