|
@@ -305,7 +305,7 @@ function initQuillEdit(_selector = '.note-content[auto-edit]') {
|
|
theme: 'snow'
|
|
theme: 'snow'
|
|
});
|
|
});
|
|
var toolbar = $(qe.container).prev('.ql-toolbar');
|
|
var toolbar = $(qe.container).prev('.ql-toolbar');
|
|
- var saveButton = $('<button class="btn btn-sm btn-primary w-auto px-3 py-0 text-sm text-white save-note-content" disabled>Save</button>');
|
|
|
|
|
|
+ var saveButton = $('<button class="btn btn-sm btn-primary w-auto px-3 py-0 text-sm text-white save-note-content">Save</button>');
|
|
toolbar.append(saveButton);
|
|
toolbar.append(saveButton);
|
|
saveButton.on('click', function() {
|
|
saveButton.on('click', function() {
|
|
$.post('/api/note/putFreeTextHtml', {
|
|
$.post('/api/note/putFreeTextHtml', {
|
|
@@ -322,9 +322,9 @@ function initQuillEdit(_selector = '.note-content[auto-edit]') {
|
|
}
|
|
}
|
|
}, 'json');
|
|
}, 'json');
|
|
});
|
|
});
|
|
- qe.on('text-change', function() {
|
|
|
|
- saveButton.prop('disabled', false);
|
|
|
|
- });
|
|
|
|
|
|
+ // qe.on('text-change', function() {
|
|
|
|
+ // saveButton.prop('disabled', false);
|
|
|
|
+ // });
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|