Skip to content

Commit

Permalink
MINOR More flexible form detection in LeftAndMain.Tree.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 8, 2012
1 parent b836bce commit 08c3e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/javascript/LeftAndMain.Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08c3e7e

Please sign in to comment.