mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix ability to edit files immeditately after upload
Conflicts: javascript/dist/UploadField.js
This commit is contained in:
parent
7337f26d3a
commit
7580d35be8
3
javascript/dist/UploadField.js
vendored
3
javascript/dist/UploadField.js
vendored
@ -417,10 +417,11 @@
|
||||
}
|
||||
|
||||
if (iframe.attr('src') == 'about:blank') {
|
||||
var disabled = this.siblings();
|
||||
|
||||
iframe.attr('src', iframe.data('src'));
|
||||
|
||||
iframe.parent().addClass('loading');
|
||||
disabled = this.siblings();
|
||||
disabled.addClass('ui-state-disabled');
|
||||
disabled.attr('disabled', 'disabled');
|
||||
|
||||
|
@ -430,13 +430,14 @@ $.entwine('ss', function($) {
|
||||
}
|
||||
|
||||
if (iframe.attr('src') == 'about:blank') {
|
||||
var disabled = this.siblings();
|
||||
|
||||
// Lazy-load the iframe on editform toggle
|
||||
iframe.attr('src', iframe.data('src'));
|
||||
|
||||
// Add loading class, disable buttons while loading is in progress
|
||||
// (_prepareIframe() handles re-enabling them when appropriate)
|
||||
iframe.parent().addClass('loading');
|
||||
disabled=this.siblings();
|
||||
disabled.addClass('ui-state-disabled');
|
||||
disabled.attr('disabled', 'disabled');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user