Skip to content

Commit

Permalink
Merge pull request #1248 from OPUS4/v4.8.0.7
Browse files Browse the repository at this point in the history
Release OPUS 4.8.0.7
  • Loading branch information
j3nsch authored Oct 22, 2024
2 parents 9a5fccb + b6b6572 commit 990fcd0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OPUS 4 Change Log

## Release 4.8.0.7 - 2024-10-22

https://github.com/OPUS4/application/issues/1243

## Release 4.8.0.6 - 2024-08-27

https://github.com/OPUS4/application/issues/992
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mostly.

## OPUS 4

The current version of OPUS 4 is __4.8.0.6__. It is available on the [master][MASTER] branch and compatible with
The current version of OPUS 4 is __4.8.0.7__. It is available on the [master][MASTER] branch and compatible with
PHP 7.1 to 8.1.

[Documentation][DOC]
Expand Down
12 changes: 12 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# OPUS 4 Release Notes

## Patch Release 4.8.0.7 - 2024-10-22

Ein Fehler beim Drücken der Enter/Return-Taste in einfachen Text-Feldern
des Publish-Formulars wurde korrigiert. Bisher wurde dabei unabsichtlich der
erste Submit-Button des Formulars ausgeführt und damit unter Umständen ein
neuer Eintrag für Autor*innen oder ähnliches hinzugefügt. Jetzt passiert das
nicht mehr. Das sorgt auch dafür, dass das Metadaten-Formular in der
Administration nicht mehr abgespeichert wird, wenn in einem einfachen
Text-Eingabefeld die Enter/Return-Taste gedrückt wird.

https://github.com/OPUS4/application/issues/1243

## Patch Release 4.8.0.6 - 2024-08-27

Problem bei der Ausführung von PHP Update-Skripten behoben.
Expand Down
2 changes: 1 addition & 1 deletion application/configs/application.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ name = 'OPUS 4'
logoLink = home
security = 1
workspacePath = APPLICATION_PATH "/workspace"
version = 4.8.0.6
version = 4.8.0.7
update.latestVersionCheckUrl = "https://api.github.com/repos/opus4/application/releases/latest"

; Determines the implementation of the OPUS 4 data model
Expand Down
17 changes: 11 additions & 6 deletions public/layouts/opus4/js/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@
* along with OPUS; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @category Application
* @author Sascha Szott <szott@zib.de>
* @copyright Copyright (c) 2008-2012, OPUS 4 development team
* @copyright Copyright (c) 2008, OPUS 4 development team
* @license http://www.gnu.org/licenses/gpl.html General Public License
* @version $Id$
*
*/

$(function () {
Expand All @@ -40,4 +36,13 @@ $(function () {
});
});

});
// Prevent submission of form when Enter/Return is pressed in a simple text input
$('form').on('keydown', e => {
if (e.key === 'Enter') {
if ($(e.target).is("input[type='text']")) {
e.preventDefault();
}
}
});

});

0 comments on commit 990fcd0

Please sign in to comment.