Add tags for librejs compatibility on application/console pages and in embedded javascript

This commit is contained in:
hankhill19580
2020-09-20 05:05:57 +00:00
parent c4a5d111e7
commit 8fa3e45e47
23 changed files with 129 additions and 1 deletions

View File

@ -1,3 +1,5 @@
/* @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 */
function initDelete()
{
var main = document.getElementById("mainsection");
@ -21,3 +23,5 @@ function initDelete()
document.addEventListener("DOMContentLoaded", function() {
initDelete();
}, true);
/* @license-end */

View File

@ -1,3 +1,5 @@
/* @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2.0 */
const setupbuttons=()=>{
let sp = document.forms[0].savepri;
if ( sp ) updatesetallbuttons(), sp.disabled = true, sp.className = 'disabled';
@ -115,3 +117,5 @@ function addClickHandler(elem)
document.addEventListener("DOMContentLoaded", function() {
setupbuttons();
}, true);
/* @license-end */

View File

@ -1,3 +1,9 @@
/* @license http://creativecommons.org/publicdomain/zero/1.0/legalcode CC0-1.0 */
// This component is dedicated to the public domain. It uses the CC0
// as a formal dedication to the public domain and in circumstances where
// a public domain is not usable.
function requestAjax1() {
var url = ".ajax/xhr1.html";
var query = window.location.search;
@ -13,3 +19,5 @@ function initAjax() {
document.addEventListener("DOMContentLoaded", function() {
initAjax();
}, true);
/* #license-end */