mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-15 03:35:10 +00:00
Filter HTML from some attributes
Bug: T138142 Change-Id: Ie5048b38ed397ce852d3f9145a63fe4f52930da9
This commit is contained in:
parent
dba273ac31
commit
3c71b85c84
|
@ -15,7 +15,7 @@
|
|||
* along with MediaViewer. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
( function ( mw, $ ) {
|
||||
( function ( mw ) {
|
||||
var LP;
|
||||
|
||||
/**
|
||||
|
@ -125,16 +125,14 @@
|
|||
var shortName = this.getShortName();
|
||||
|
||||
if ( this.deedUrl ) {
|
||||
return this.htmlUtils.jqueryToHtml(
|
||||
$( '<a>' ).prop( {
|
||||
href: this.deedUrl,
|
||||
title: this.longName || shortName
|
||||
} ).text( shortName )
|
||||
);
|
||||
return this.htmlUtils.makeLinkText( shortName, {
|
||||
href: this.deedUrl,
|
||||
title: this.longName || shortName
|
||||
} );
|
||||
} else {
|
||||
return shortName;
|
||||
}
|
||||
};
|
||||
|
||||
mw.mmv.model.License = License;
|
||||
}( mediaWiki, jQuery ) );
|
||||
}( mediaWiki ) );
|
||||
|
|
Loading…
Reference in a new issue