Merge pull request #9301 from tobiasd/20200927-frio-js

added license hints to the Frio javascript files
This commit is contained in:
Hypolite Petovan 2020-09-27 14:02:58 -04:00 committed by GitHub
commit 62ed8de568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 33 additions and 1 deletions

View file

@ -18,7 +18,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="{{$baseurl}}/manifest" />
<script>
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
// |license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(function() {
// Jot attachment live preview.
let $textarea = $('textarea[name=body]');
@ -55,3 +56,4 @@ function updateLocationButtonDisplay(location_button, location_input)
location_button.title = location_button.dataset.titleSet;
}
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(document).ready(function() {
// Go to the permissions tab if the checkbox is checked.
$('body').on("click", "#id_share", function() {
@ -107,3 +108,4 @@ function enableDisableFinishDate() {
else
$('#id_finish_text').prop("disabled", false);
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* Filebrowser - Friendica Communications Server
*
@ -251,3 +252,4 @@ var FileBrowser = {
});
}
};
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/*
* The javascript for friendicas hovercard. Bootstraps popover is needed.
*
@ -183,3 +184,4 @@ function getHoverCardContent(contact_url, callback) {
},
});
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
// We append the linkPreview to a global Variable to make linkPreview
// accessable on other places. Note: search on other places before you
// delete or move the variable.
@ -37,3 +38,4 @@ function jotGetLink() {
autosize.update($("#profile-jot-text"));
}
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* Javascript for the admin module
*/
@ -66,3 +67,4 @@ function details(uid) {
$("#user-" + uid).toggleClass("opened");
return false;
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
var batchConfirmed = false;
@ -42,3 +43,4 @@ function batch_submit_handler(name, value) {
return false;
}
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* Javascript for the display module
*/
@ -9,3 +10,4 @@ $(window).load(function(){
// Scroll to the Item by its GUID
scrollToItem('item-' + itemGuid);
});
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* @file view/theme/frio/js/mod_events.js
* Initialization of the fullCalendar and format the output.
@ -256,3 +257,4 @@ function formatListViewEvent(event) {
return formatted;
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* @file view/theme/frio/js/mod_group.js
@ -86,3 +87,4 @@ function filterList() {
}
}
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* Javascript for the notifications module
@ -34,3 +35,4 @@ function isIntroID() {
}
return false;
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
$(document).ready(function() {
@ -46,3 +47,4 @@ $(window).load(function() {
"height": pheight
});
});
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/**
* Contains functions for bootstrap modal handling.
*/
@ -397,3 +398,4 @@ function eventEdit(url) {
loadModalTitle();
});
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
/*
* The file contains functions for text editing and commenting
*/
@ -225,3 +226,4 @@ function dropItem(url, elementId) {
});
}
}
// @license-end

View file

@ -1,3 +1,4 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later
var jotcache = ''; //The jot cache. We use it as cache to restore old/original jot content
@ -799,3 +800,4 @@ function toggleDropdownText(elm) {
function hasClass(elem, cls) {
return (" " + elem.className + " " ).indexOf( " "+cls+" " ) > -1;
}
// @license-end

View file

@ -39,8 +39,10 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="{{$baseurl}}/manifest" />
<script type="text/javascript">
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
// Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167
(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone");
// |license-end
</script>
<link rel="search"