Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR More flexible form detection in LeftAndMain.Tree.js

  • Loading branch information...
commit 08c3e7edf3119e50d4a5a3a0d793296c3d4286db 1 parent b836bce
Ingo Schommer chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/javascript/LeftAndMain.Tree.js
2  admin/javascript/LeftAndMain.Tree.js
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.