From f09d991991c1fb11cd8fbe808fa19768b64e49a8 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 11 Jan 2024 06:37:49 +0000 Subject: [PATCH] Shorten copyright headers for JS files (#37730). git-svn-id: https://svn.redmine.org/redmine/trunk@22603 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 19 +++------------ public/javascripts/attachments.js | 19 +++------------ public/javascripts/context_menu.js | 27 ++++++--------------- public/javascripts/gantt.js | 19 +++------------ public/javascripts/project_identifier.js | 19 +++------------ public/javascripts/repository_navigation.js | 23 +++++------------- public/javascripts/responsive.js | 19 +++------------ public/javascripts/revision_graph.js | 21 ++++------------ 8 files changed, 39 insertions(+), 127 deletions(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index c1b5d580d..007fa6a41 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ function sanitizeHTML(string) { var temp = document.createElement('span'); diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 34a8cf336..5d6426a3d 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ function addFile(inputEl, file, eagerUpload) { var attachmentsFields = $(inputEl).closest('.attachments_form').find('.attachments_fields'); diff --git a/public/javascripts/context_menu.js b/public/javascripts/context_menu.js index 7421997df..303d3d52d 100644 --- a/public/javascripts/context_menu.js +++ b/public/javascripts/context_menu.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ var contextMenuObserving; @@ -108,8 +97,8 @@ function contextMenuCreate() { function contextMenuShow(event) { var mouse_x = event.pageX; - var mouse_y = event.pageY; - var mouse_y_c = event.clientY; + var mouse_y = event.pageY; + var mouse_y_c = event.clientY; var render_x = mouse_x; var render_y = mouse_y; var dims; @@ -161,7 +150,7 @@ function contextMenuShow(event) { // adding class for submenu if (window_height - mouse_y_c < 345) { $('#context-menu .folder').addClass('up'); - } + } $('#context-menu').removeClass('reverse-y'); } @@ -235,7 +224,7 @@ function contextMenuClearDocumentSelection() { function contextMenuInit() { contextMenuCreate(); contextMenuUnselectAll(); - + if (!contextMenuObserving) { $(document).click(contextMenuClick); $(document).contextmenu(contextMenuRightClick); diff --git a/public/javascripts/gantt.js b/public/javascripts/gantt.js index e00523a63..a12f5241e 100644 --- a/public/javascripts/gantt.js +++ b/public/javascripts/gantt.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ var draw_gantt = null; var draw_top; diff --git a/public/javascripts/project_identifier.js b/public/javascripts/project_identifier.js index e551250d1..4bf7ad133 100644 --- a/public/javascripts/project_identifier.js +++ b/public/javascripts/project_identifier.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ // Automatic project identifier generation diff --git a/public/javascripts/repository_navigation.js b/public/javascripts/repository_navigation.js index 35ddd5397..f97ef6e09 100644 --- a/public/javascripts/repository_navigation.js +++ b/public/javascripts/repository_navigation.js @@ -1,22 +1,11 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ $(document).ready(function() { - /* + /* If we're viewing a tag or branch, don't display it in the revision box */ @@ -26,7 +15,7 @@ $(document).ready(function() { $('#rev').val(''); } - /* + /* Copy the branch/tag value into the revision box, then disable the dropdowns before submitting the form */ diff --git a/public/javascripts/responsive.js b/public/javascripts/responsive.js index 9dc4db4e7..1bf1b420f 100644 --- a/public/javascripts/responsive.js +++ b/public/javascripts/responsive.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ // generic layout specific responsive stuff goes here diff --git a/public/javascripts/revision_graph.js b/public/javascripts/revision_graph.js index 84f01c889..86403d428 100644 --- a/public/javascripts/revision_graph.js +++ b/public/javascripts/revision_graph.js @@ -1,19 +1,8 @@ -/* Redmine - project management software +/** + * Redmine - project management software * Copyright (C) 2006-2023 Jean-Philippe Lang - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + * This code is released under the GNU General Public License. + */ var revisionGraph = null; @@ -108,7 +97,7 @@ function drawRevisionGraph(holder, commits_hash, graph_space) { .attr({ fill: '#000', opacity: 0, - cursor: 'pointer', + cursor: 'pointer', href: commit.href });