diff --git a/app/modules/Honeybee_Core/assets/ui/Autostart.js b/app/modules/Honeybee_Core/assets/ui/Autostart.js index e5c1b855..d3a37a6d 100644 --- a/app/modules/Honeybee_Core/assets/ui/Autostart.js +++ b/app/modules/Honeybee_Core/assets/ui/Autostart.js @@ -12,7 +12,6 @@ define([ config.get('widgets.loading_release_time', 10000) ); handleClipboardCopyClicks(); - handleTextareaMaxlength(); // "data-clipboard-copy-value" text will be copied to clipboard from ".js-clipboard-copy" elements on click function handleClipboardCopyClicks() { @@ -148,16 +147,4 @@ define([ } }); } - - function handleTextareaMaxlength() { - $('textarea[maxlength]').on('input propertychange', function(event) { - $textarea = $(this); - maxlength = $textarea.attr('maxlength'); - if (isNaN(maxlength) || maxlength < 0) { - return; - } - limited_content = $textarea.val().substr(0, maxlength); - $textarea.val(limited_content); - }); - } });