mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR More flexible form detection in LeftAndMain.Tree.js
This commit is contained in:
parent
b836bce521
commit
08c3e7edf3
@ -207,7 +207,7 @@
|
||||
return false;
|
||||
};
|
||||
|
||||
var handledform = $(e.target).children('.cms-edit-form:first')[0];
|
||||
var handledform = $(e.target).is('.cms-edit-form') ? $(e.target)[0] : $(e.target).find('.cms-edit-form')[0];
|
||||
var id = $(handledform.ID).val();
|
||||
|
||||
// check if a form with a valid ID exists
|
||||
|
Loading…
Reference in New Issue
Block a user