Permalink
Browse files

MINOR More flexible form detection in LeftAndMain.Tree.js

  • Loading branch information...
1 parent b836bce commit 08c3e7edf3119e50d4a5a3a0d793296c3d4286db @chillu chillu committed Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/javascript/LeftAndMain.Tree.js
View
2 admin/javascript/LeftAndMain.Tree.js
@@ -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

0 comments on commit 08c3e7e

Please sign in to comment.