Skip to content

Commit

Permalink
Don't show + signs for finer pages that are not editable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Tibold committed Aug 24, 2012
1 parent 3b379b0 commit 68fad4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fiber/static/fiber/js/admin.js
Expand Up @@ -1904,6 +1904,9 @@ Fiber.FiberItem = Class.extend({
},

show_admin_element: function() {
if (!this.element_data.can_edit) {
return;
}
if (!this.button) {
this.create_button();
}
Expand Down Expand Up @@ -2156,7 +2159,6 @@ Fiber.FiberItem = Class.extend({
on_contextmenu: function(e) {
e.preventDefault();
e.stopPropagation();
console.log(this);
if (!this.element_data.can_edit) {
return;
}
Expand Down

0 comments on commit 68fad4c

Please sign in to comment.