MINOR More flexible form detection in LeftAndMain.Tree.js

This commit is contained in:
Ingo Schommer 2012-03-08 18:21:39 +01:00
parent b836bce521
commit 08c3e7edf3

View File

@ -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