Commit f7bca0f1 authored by Francois Marier's avatar Francois Marier

Update license notice on all Javascript files

This is based on the proposal in the Appendix of this page:

  http://www.gnu.org/philosophy/javascript-trap.html

We now explicitly give permission to minify/compress the Mahara
javascript files.
Signed-off-by: default avatarFrancois Marier <francois@catalyst.net.nz>
parent 457a0399
/**
* TinyMCE plugin to provide a popup for inserting an image that has been
* uploaded or attached to a blog post
* TinyMCE plugin to provide a popup for inserting an image that has
* been uploaded or attached to a blog post
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var ImageDialog = {
preInit : function() {
var url;
......
/**
* File browser
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
function FileBrowser(idprefix, folderid, config, globalconfig) {
var self = this;
......
/**
* Javascript for the profile form
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
// Stuff
addLoadEvent(function() {
var fieldsets = getElementsByTagAndClassName('fieldset', null, 'profileform');
......
/**
* Javascript for the resume artefact
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
/*
* TODO
* move javascript into the resume plugin?
......
/**
* Automatic display of the Free Culture seal
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2009-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
function toggle_seal() {
freeculture = true;
sealimage = $("freecultureseal");
......
/**
* Pager module for MochiKit
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
try {
if (
typeof(MochiKit.Base) == 'undefined' ||
......
/**
* Support file for the adduser admin page in Mahara
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var current;
function move_step(i) {
......
/**
* Forces full reload of the page if certain site options have been changed
* Forces full reload of the page if certain site options have been
* changed
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
// Add here as appropriate
......
/**
* Automatically populates the WYSIWYG box on the site pages screen with the
* content of the appropriate page
* Automatically populates the WYSIWYG box on the site pages screen
* with the content of the appropriate page
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var oldPageContent = '';
......
/**
* 'Speeds up' the user search if the user has javascript enabled in their
* browser
* 'Speeds up' the user search if the user has javascript enabled in
* their browser
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
function UserSearch() {
......
/**
* Hooks in a stylesheet that is only loaded when javascript is enabled
* @source: http://gitorious.org/mahara/mahara
*
* Copyright (C) 2009 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2009-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var styleNode = createDOM('link', {
'rel' : 'stylesheet',
'type': 'text/css',
......
/*
/**
* debug.js - for developer use
* @source: http://gitorious.org/mahara/mahara
*
* If you're developing for Mahara, you can put any javascript you want to use
* for debugging in here.
*
* This file will only be included if the configuration setting 'developermode'
* is enabled. You can enable this in config.php
* JS behaviour for the export UI
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* This file is licensed under the same terms as Mahara itself.
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
/*
......
/**
* JS behaviour for the export UI
* @source: http://gitorious.org/mahara/mahara
*
* Copyright (C) 2009 Catalyst IT
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* TODO: i18n
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
// TODO: i18n
addLoadEvent(function() {
removeElementClass($('whatviewsselection'), 'hidden');
var container = $('whatviews');
......
/**
* Provides functionality for pop-up GroupBoxes on Find Friend and My Friends pages.
* Provides functionality for pop-up GroupBoxes on Find Friend and My
* Friends pages.
* @source: http://gitorious.org/mahara/mahara
*
* (C) 2009 Lancaster University Network Services Limited
* http://www.luns.net.uk
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2009-2010 Lancaster University Network Services Ltd
* http://www.luns.net.uk
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
// array compare method
......
/**
* Adds keystroke navigation to Mahara.
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
addLoadEvent(function() {
connect(window,'onkeypress',function(e) {
var targetType = e.target().nodeName;
......
/**
* General javascript routines for Mahara
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
// @todo: Pack it down.
// Expects strings array
function get_string(s) {
......
/**
* Javascript for moving things around with drag&drop
* Javascript for moving things around with drag and drop
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var MoveSources = {
......
/**
* Javascript side of the accessible pagination for Mahara.
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
/**
......
/**
* Helper for showing "preview" boxes, which are just modal dialogs
* Javascript for the views interface
* @source: http://gitorious.org/mahara/mahara
*
* Copyright (C) 2009 Catalyst IT
* @licstart
* Copyright (C) 2009-2010 Catalyst IT Ltd
*
* This file is licensed under the same terms as Mahara itself
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
var preview = DIV({'id':'viewpreview', 'class':'hidden main-column'},
......
/**
* 'Speeds up' search if the user has javascript enabled in their browser
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2009-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
function SearchTable(id) {
......
/**
* Javascript based display of tabular data.
* @source: http://gitorious.org/mahara/mahara
*
* NOTE: use of this is deprecated in Mahara - it's not accessable. See
* NOTE: use of this is deprecated in Mahara - it's not accessible. See
* paginator.js and talk to the developers for more information
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
TableRendererPageLoaded = false;
addLoadEvent(function() { TableRendererPageLoaded = true });
document.write('<script type="text/javascript" src="' + config.wwwroot + 'js/Pager.js"></script>');
......
/**
* 'Speeds up' the user search if the user has javascript enabled in their
* browser
* @source: http://gitorious.org/mahara/mahara
*
* Copyright: 2006-2008 Catalyst IT Ltd
* This file is licensed under the same terms as Mahara itself
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
* @licend
*/
function UserSearch() {
......
/**
* Javascript for the view menu
* @source: http://gitorious.org/mahara/mahara
*
* @licstart
* Copyright (C) 2006-2010 Catalyst IT Ltd
*