mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Change to a page url segment doesn't get saved properly caused by 'disabled' attribute on the field, which is added by url segment suggestion function (ticket #6842)
This commit is contained in:
parent
8cfe784bf8
commit
1823c58f6f
@ -32,10 +32,10 @@
|
||||
this.bind('change', function(e) {
|
||||
if(!self.val()) return;
|
||||
|
||||
self.attr('disabled', 'disabled').parents('.field:first').addClass('loading');
|
||||
self.addClass('disabled').parents('.field:first').addClass('loading');
|
||||
var oldVal = self.val();
|
||||
self.suggest(oldVal, function(data) {
|
||||
self.removeAttr('disabled').parents('.field:first').removeClass('loading');
|
||||
self.removeClass('disabled').parents('.field:first').removeClass('loading');
|
||||
var newVal = decodeURIComponent(data.value);
|
||||
self.val(newVal);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user