mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Clear wopi file length error on input, css fix [SCI-8877]
This commit is contained in:
parent
ff83b97d7b
commit
ebfaca6966
2 changed files with 13 additions and 0 deletions
|
@ -127,6 +127,10 @@
|
|||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.filter-table input {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.filter-table,
|
||||
.display-limit {
|
||||
flex-shrink: 0;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* global HelperModule */
|
||||
|
||||
const FILENAME_MAX_LENGTH = 100;
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
initWopiFileModal(step, requestCallback) {
|
||||
|
@ -10,6 +12,13 @@ export default {
|
|||
$wopiModal.modal('show');
|
||||
$($wopiModal).find('#new-wopi-file-name').focus();
|
||||
|
||||
// Clear filename input error on input change if appropriate
|
||||
$wopiModal.on('input', '#new-wopi-file-name', (e) => {
|
||||
if (e.currentTarget.value.length <= FILENAME_MAX_LENGTH) {
|
||||
$wopiModal.clearFormErrors();
|
||||
}
|
||||
});
|
||||
|
||||
$wopiModal.find('form').on(
|
||||
'ajax:success',
|
||||
(e, data, status) => {
|
||||
|
|
Loading…
Reference in a new issue