[Rt-commit] rt branch, 5.0-trunk, updated. rt-5.0.1-550-g5b8dae2f92
? sunnavy
sunnavy at bestpractical.com
Mon Jun 28 12:56:02 EDT 2021
The branch, 5.0-trunk has been updated
via 5b8dae2f92f59ff49af9842403167f05395a9cdc (commit)
via f134439a225a7e3171ba0e48257445771ee20fce (commit)
from 4bcf974e152336a9c997e4d11c7f2b7ce3abb8fc (commit)
Summary of changes:
share/html/Search/Elements/EditFormat | 2 +-
share/static/js/util.js | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit f134439a225a7e3171ba0e48257445771ee20fce
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Jun 23 23:55:08 2021 +0800
Register the missing autocomplete handler for refreshed inline-edited row
E.g. autocomplete owner wouldn't work without this.
diff --git a/share/static/js/util.js b/share/static/js/util.js
index bd9cc01a5a..bcf73c20a9 100644
--- a/share/static/js/util.js
+++ b/share/static/js/util.js
@@ -618,6 +618,7 @@ function refreshCollectionListRow(tbody, table, success, error) {
tbody = table.find('tbody[data-index=' + index + ']');
initDatePicker(tbody);
tbody.find('.selectpicker').selectpicker();
+ RT.Autocomplete.bind(tbody);
if (success) { success(response) }
},
error: error
commit 5b8dae2f92f59ff49af9842403167f05395a9cdc
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jun 24 00:05:36 2021 +0800
Clear "Add Columns" select after change
We switched to selectize in RT 5, and the previous clear approach
doesn't work any more.
diff --git a/share/html/Search/Elements/EditFormat b/share/html/Search/Elements/EditFormat
index ca260ecf32..c76df300d8 100644
--- a/share/html/Search/Elements/EditFormat
+++ b/share/html/Search/Elements/EditFormat
@@ -73,7 +73,7 @@ jQuery( function() {
if ( data.status == 'success' ) {
form.find('input[name=Format]').val(data.Format);
form.find('select[name=CurrentDisplayColumns]').html(data.CurrentDisplayColumns);
- form.find('select[name=SelectDisplayColumns]').val('').change();
+ form.find('select[name=SelectDisplayColumns]').get(0).selectize.clear();
form.find('[name=Link],[name=Title],[name=Size],[name=Face]').val('');
form.find('[name=Link],[name=Title],[name=Size],[name=Face]').selectpicker('refresh');
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list