mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-09-25 03:09:52 +00:00
Merge "(bug 45887) Improve error popup discoverability"
This commit is contained in:
commit
2cbaae6673
|
@ -71,6 +71,7 @@ $sbtpl = array(
|
|||
|
||||
$wgResourceModules['ext.scribunto'] = $sbtpl + array(
|
||||
'scripts' => 'ext.scribunto.js',
|
||||
'styles' => 'ext.scribunto.css',
|
||||
'dependencies' => array( 'jquery.ui.dialog' ),
|
||||
'messages' => array(
|
||||
'scribunto-parser-dialog-title'
|
||||
|
|
7
modules/ext.scribunto.css
Normal file
7
modules/ext.scribunto.css
Normal file
|
@ -0,0 +1,7 @@
|
|||
.scribunto-error {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.scribunto-error:hover, .scribunto-error:focus {
|
||||
text-decoration: underline;
|
||||
}
|
|
@ -25,7 +25,6 @@
|
|||
}
|
||||
var errorId = parseInt( matches[1] );
|
||||
$( span )
|
||||
.css( 'cursor', 'pointer' )
|
||||
.bind( 'click', function ( evt ) {
|
||||
if ( typeof that.errors[ errorId ] !== 'string' ) {
|
||||
console.log( "mw.scribunto.init: error " + matches[1] + " not found, " +
|
||||
|
|
Loading…
Reference in a new issue