Permalink
Browse files

Issue #37: Double click on an empty page_content part causes a crash

  • Loading branch information...
mvdwaeter committed Nov 2, 2011
1 parent 6f7f974 commit 5ddcaf0d5f3c5aadffefac9430c4b44c7bcdbeef
Showing with 6 additions and 4 deletions.
  1. +6 −4 fiber/static/fiber/js/admin.js
@@ -2254,11 +2254,13 @@ var FiberItem = Class.extend({
// TODO: move to content item specific class (edit)
edit_content_item: function() {
- adminPage.hide_admin_elements();
+ if (this.element_data.url) {
+ adminPage.hide_admin_elements();
- new ChangeContentItemFormDialog({
- url: this.element_data.url
- });
+ new ChangeContentItemFormDialog({
+ url: this.element_data.url
+ });
+ }
}
});

0 comments on commit 5ddcaf0

Please sign in to comment.