X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Feditor.js.coffee;h=b965be50a968b83571ed4e9663f1169e2567fe9c;hb=de408cbbba0d4600c71763c404f90dbce51ce8b0;hp=a912f7b363294544bceb13b7d88dad7ee349d714;hpb=f9d7686078927e5f2b48cc590057fd22c8d16b00;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/editor.js.coffee b/app/assets/javascripts/editor.js.coffee index a912f7b3..b965be50 100644 --- a/app/assets/javascripts/editor.js.coffee +++ b/app/assets/javascripts/editor.js.coffee @@ -119,29 +119,6 @@ class Editor.EditorModule.DockModule.FormBucket extends Editor.EditorModule.Dock render: () -> @form.render() -class Editor.EditorModule.DockModule.PriorityBucket extends Editor.EditorModule.DockModule.Bucket - - initialize: (options) -> - super(options) - - board: () -> - @parent.board() - - bay: () -> - @board().bay() - -class Editor.EditorModule.DockModule.ScenarioBucket extends Editor.EditorModule.DockModule.Bucket - - initialize: (options) -> - super(options) - @element = options.element - - board: () -> - @parent.board() - - bay: () -> - @board().bay() - class Editor.EditorModule.DockModule.TabModule class Editor.EditorModule.DockModule.TabModule.Label extends Backbone.View @@ -262,18 +239,14 @@ class Editor.EditorModule.DockModule.TabModule.BoardLabel extends Editor.EditorM dom_class: () -> @board().dom_class() + '-label' - with_destroy_button: () -> - true - face: () -> linked_elements_tab = new Tag.A({ attr: {href: '#' + @board().body.dom_id() }, content: @element().element_face().render().el }) this.$el.append(linked_elements_tab.render().el) - if @with_destroy_button() - destroy_button = new Editor.EditorModule.DestroyButton() - this.$el.append(destroy_button.render().el) + @destroy_button = new Editor.EditorModule.DestroyButton() + this.$el.append(@destroy_button.render().el) render: () -> this.$el.html('')