mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 03:09:40 +00:00
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:
parent
032ea9d958
commit
516d0168c3
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue