mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: prevent refreshing the history panel when reloading versions
This commit is contained in:
parent
e17b4a185a
commit
28dff0107a
@ -49,7 +49,10 @@
|
|||||||
* Handle coupling to admin url
|
* Handle coupling to admin url
|
||||||
*/
|
*/
|
||||||
onsubmit: function(e, d) {
|
onsubmit: function(e, d) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
var id, self = this;
|
var id, self = this;
|
||||||
|
|
||||||
id = this.find(':input[name=ID]').val();
|
id = this.find(':input[name=ID]').val();
|
||||||
|
|
||||||
if(!id) return false;
|
if(!id) return false;
|
||||||
@ -59,6 +62,7 @@
|
|||||||
metadata = this.metadata({type: 'class'});
|
metadata = this.metadata({type: 'class'});
|
||||||
compare = (this.find(":input[name=CompareMode]").is(":checked"));
|
compare = (this.find(":input[name=CompareMode]").is(":checked"));
|
||||||
selected = this.find("table input[type=checkbox]").filter(":checked");
|
selected = this.find("table input[type=checkbox]").filter(":checked");
|
||||||
|
|
||||||
if(compare) {
|
if(compare) {
|
||||||
if(selected.length != 2) return false;
|
if(selected.length != 2) return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user