Difference between revisions of "MediaWiki:Group-administrator.js"

From FamilySearch Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
var siteNotice = document.querySelector('#localNotice');
 
var siteNotice = document.querySelector('#localNotice');
//siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';
+
siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';

Revision as of 00:21, 24 January 2018

/* This code should load for all administrators */

var wikiErrorMessage = 'This is a test';

var siteNotice = document.querySelector('#localNotice');
siteNotice.innerHTML = '<div class="fs-alert fs-alert--error"><p>'+wikiErrorMessage+'</p></div>';