From 48aa4607a8845148f7f7be6a4bf990a798abb566 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 18 Apr 2013 10:37:55 +0200 Subject: [PATCH] =?utf8?q?Kontextmen=C3=BC=20mit=20Pflichtenheftaktionen?= =?utf8?q?=20=C3=BCberall=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/requirement_spec.js | 7 ++++++- templates/webpages/requirement_spec/_form.html | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/js/requirement_spec.js b/js/requirement_spec.js index 31807f097..b15700879 100644 --- a/js/requirement_spec.js +++ b/js/requirement_spec.js @@ -331,6 +331,11 @@ function create_requirement_spec_context_menus() { , delete_reqspec: { name: kivi.t8('Delete requirement spec'), icon: "delete", callback: delete_reqspec } }; + $.contextMenu({ + selector: '#content', + items: general_actions + }); + $.contextMenu({ selector: '.text-block-context-menu', events: { @@ -349,7 +354,7 @@ function create_requirement_spec_context_menus() { }, general_actions) }); - var events = { + events = { show: requirement_spec_item_popup_menu_shown, hide: requirement_spec_item_popup_menu_hidden }; diff --git a/templates/webpages/requirement_spec/_form.html b/templates/webpages/requirement_spec/_form.html index 3f4e0cf97..e15d45d6a 100644 --- a/templates/webpages/requirement_spec/_form.html +++ b/templates/webpages/requirement_spec/_form.html @@ -46,13 +46,9 @@ [% IF submit_as == 'post' %] [% L.hidden_tag("action", "RequirementSpec/dispatch", id=id_prefix _ '_action') %] [% L.submit_tag("action_" _ (SELF.requirement_spec.id ? "update" : "create"), LxERP.t8('Save'), id=id_prefix _ '_action_update') %] - [%- IF SELF.requirement_spec.id %] - [% L.submit_tag("action_destroy", LxERP.t8('Delete'), confirm=LxERP.t8('Do you really want to delete this object?'), id=id_prefix _ '_action_destroy') %] - [%- END %] [% LxERP.t8('Abort') %] [% ELSE %] [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/update", "#" _ id_prefix, LxERP.t8("Save")) %] - [% L.ajax_submit_tag("controller.pl?action=RequirementSpec/destroy", "#" _ id_prefix, LxERP.t8("Delete"), confirm=LxERP.t8("Do you really want to delete this object?")) %] [% END %]

-- 2.20.1