From fe65c33f6b6783226297ac225e440c81721e6e0f Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Wed, 26 Apr 2023 23:19:50 +0200 Subject: [PATCH] Remove limit on time length --- capsule-prototype/js/PopupPanelWidget.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/capsule-prototype/js/PopupPanelWidget.js b/capsule-prototype/js/PopupPanelWidget.js index cef0a81..242808c 100644 --- a/capsule-prototype/js/PopupPanelWidget.js +++ b/capsule-prototype/js/PopupPanelWidget.js @@ -220,7 +220,7 @@ AnnotationTCPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) { event.stopPropagation(); }) this.editDiv.append($('<span>').addClass('popupTClabel').html('start')); - this.popupTCeditDivMinStart = $('<input class="popupTCeditfield" id="popupTCinMin" maxLength="2" type="text" value="">'); + this.popupTCeditDivMinStart = $('<input class="popupTCeditfield" id="popupTCinMin" type="text" value="">'); this.popupTCeditDivMinStart .val(Math.floor(that.tag.getTimeStart()/60).toString(10).padStart(2, '0')) .click(function (event) { @@ -229,7 +229,7 @@ AnnotationTCPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) { .on('input', onlyNumber); this.editDiv.append(this.popupTCeditDivMinStart); this.editDiv.append(':'); - this.popupTCeditDivSecStart = $('<input class="popupTCeditfield" id="popupTCinSec" maxLength="2" type="text" value="">'); + this.popupTCeditDivSecStart = $('<input class="popupTCeditfield" id="popupTCinSec" type="text" value="">'); this.popupTCeditDivSecStart .val((that.tag.getTimeStart()%60).toString(10).padStart(2, '0')) .click(function (event) { @@ -251,7 +251,6 @@ AnnotationTCPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) { this.popupTCeditDivMinEnd = $('<input>'); this.popupTCeditDivMinEnd .attr('id', 'popupTCoutMin') - .attr('maxlength', '2') .attr('type', 'text') .addClass('popupTCeditfield') .val(Math.floor(that.tag.getTimeEnd()/60).toString(10).padStart(2, '0')) @@ -265,7 +264,6 @@ AnnotationTCPanelEdition.prototype.appendInputEditorDiv = function (parentDiv) { this.popupTCeditDivSecEnd = $('<input>'); this.popupTCeditDivSecEnd .attr('id', 'popupTCoutSec') - .attr('maxlength', '2') .attr('type', 'text') .addClass('popupTCeditfield') .val(Math.floor(that.tag.getTimeEnd()%60).toString(10).padStart(2, '0')) -- GitLab