mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #1172 from robert-h-curry/preview-pane-refresh
Force preview window to refresh on every save
This commit is contained in:
commit
15a156955b
@ -318,10 +318,7 @@
|
|||||||
* Change the URL of the preview iframe (if its not already displayed).
|
* Change the URL of the preview iframe (if its not already displayed).
|
||||||
*/
|
*/
|
||||||
_loadUrl: function(url) {
|
_loadUrl: function(url) {
|
||||||
var iframe = this.find('iframe');
|
this.find('iframe').addClass('loading').attr('src', url);
|
||||||
if(iframe.attr('src') != url) {
|
|
||||||
iframe.addClass('loading').attr('src', url);
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user