MediaWiki:Gadget-ImageAnnotator.js: Difference between revisions
Content deleted Content added
mNo edit summary |
Fix https warnings |
||
Line 1,001:
this.icon = ImageAnnotator.UI.get ('wpImageAnnotatorIndicatorIcon', false);
if (this.icon) this.icon = this.icon.firstChild; // Skip the message container span or div
var img = $(this.icon).find('img');
var srcFixed = img.attr('src').replace(/^http[s]?\:/, '');
img.attr('src', srcFixed);
// Guard against misconfigurations
if ( this.icon
Line 2,915 ⟶ 2,918:
var msg = ImageAnnotator.UI.get ('wpImageAnnotatorHelp', false, true);
if (!msg || !msg.lastChild) return null;
var img = $(msg).find('img');
var srcFixed = img.attr('src').replace(/^http[s]?\:/, '');
img.attr('src', srcFixed);
if ( msg.childNodes.length == 1
&& msg.firstChild.nodeName.toLowerCase () == 'a'
|