Revision 3863756a
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
861 | 861 |
}); |
862 | 862 |
|
863 | 863 |
$.contextMenu({ |
864 |
selector: '.basic-settings-context-menu',
|
|
864 |
selector: ':has(> .basic-settings-context-menu:visible)',
|
|
865 | 865 |
items: $.extend({ |
866 | 866 |
heading: { name: kivi.t8('Basic settings actions'), className: 'context-menu-heading' } |
867 | 867 |
, edit: { name: kivi.t8('Edit'), icon: "edit", callback: kivi.requirement_spec.standard_basic_settings_ajax_call } |
... | ... | |
870 | 870 |
}); |
871 | 871 |
|
872 | 872 |
$.contextMenu({ |
873 |
selector: '.edit-project-link-context-menu',
|
|
873 |
selector: ':has(> .edit-project-link-context-menu:visible)',
|
|
874 | 874 |
items: $.extend({ |
875 | 875 |
heading: { name: kivi.t8('Project link actions'), className: 'context-menu-heading' } |
876 | 876 |
, save: { name: kivi.t8('Save'), icon: "save", callback: kivi.requirement_spec.standard_basic_settings_ajax_call } |
... | ... | |
921 | 921 |
}); |
922 | 922 |
|
923 | 923 |
$.contextMenu({ |
924 |
selector: '.edit-basic-settings-context-menu',
|
|
924 |
selector: ':has(> .edit-basic-settings-context-menu:visible)',
|
|
925 | 925 |
items: $.extend({ |
926 | 926 |
heading: { name: kivi.t8('Basic settings actions'), className: 'context-menu-heading' } |
927 | 927 |
, save: { name: kivi.t8('Save'), icon: "save", callback: kivi.requirement_spec.standard_basic_settings_ajax_call } |
... | ... | |
930 | 930 |
}); |
931 | 931 |
|
932 | 932 |
$.contextMenu({ |
933 |
selector: '.time-cost-estimate-context-menu',
|
|
933 |
selector: ':has(> div > .time-cost-estimate-context-menu:visible)',
|
|
934 | 934 |
items: $.extend({ |
935 | 935 |
heading: { name: kivi.t8('Time/cost estimate actions'), className: 'context-menu-heading' } |
936 | 936 |
, edit: { name: kivi.t8('Edit'), icon: "edit", callback: kivi.requirement_spec.standard_time_cost_estimate_ajax_call } |
... | ... | |
938 | 938 |
}); |
939 | 939 |
|
940 | 940 |
$.contextMenu({ |
941 |
selector: '.edit-time-cost-estimate-context-menu',
|
|
941 |
selector: ':has(> .edit-time-cost-estimate-context-menu:visible)',
|
|
942 | 942 |
items: $.extend({ |
943 | 943 |
heading: { name: kivi.t8('Time/cost estimate actions'), className: 'context-menu-heading' } |
944 | 944 |
, save: { name: kivi.t8('Save'), icon: "save", callback: kivi.requirement_spec.standard_time_cost_estimate_ajax_call } |
... | ... | |
948 | 948 |
}); |
949 | 949 |
|
950 | 950 |
$.contextMenu({ |
951 |
selector: '.additional-parts-context-menu',
|
|
951 |
selector: ':has(> .additional-parts-context-menu:visible)',
|
|
952 | 952 |
items: $.extend({ |
953 | 953 |
heading: { name: kivi.t8('Additional articles actions'), className: 'context-menu-heading' } |
954 | 954 |
, edit: { name: kivi.t8('Edit'), icon: "edit", callback: kivi.requirement_spec.standard_additional_parts_ajax_call } |
... | ... | |
962 | 962 |
}; |
963 | 963 |
|
964 | 964 |
$.contextMenu({ |
965 |
selector: '.edit-additional-parts-context-menu',
|
|
965 |
selector: ':has(> .edit-additional-parts-context-menu:visible)',
|
|
966 | 966 |
items: $.extend({ |
967 | 967 |
heading: { name: kivi.t8('Additional articles actions'), className: 'context-menu-heading' } |
968 | 968 |
}, additional_parts_actions, general_actions) |
... | ... | |
977 | 977 |
}); |
978 | 978 |
|
979 | 979 |
$.contextMenu({ |
980 |
selector: '.quotations-and-orders-context-menu,.quotations-and-orders-order-context-menu',
|
|
980 |
selector: ':has(> .quotations-and-orders-context-menu:visible),.quotations-and-orders-order-context-menu',
|
|
981 | 981 |
items: $.extend({ |
982 | 982 |
heading: { name: kivi.t8('Quotations/Orders actions'), className: 'context-menu-heading' } |
983 | 983 |
, edit_assignment: { name: kivi.t8('Edit article/section assignments'), icon: "edit", callback: ns.standard_quotation_order_ajax_call } |
... | ... | |
990 | 990 |
}); |
991 | 991 |
|
992 | 992 |
$.contextMenu({ |
993 |
selector: '.quotations-and-orders-edit-assignment-context-menu',
|
|
993 |
selector: ':has(> .quotations-and-orders-edit-assignment-context-menu:visible)',
|
|
994 | 994 |
items: $.extend({ |
995 | 995 |
heading: { name: kivi.t8('Edit article/section assignments'), className: 'context-menu-heading' } |
996 | 996 |
, save_assignment: { name: kivi.t8('Save'), icon: "edit", callback: ns.standard_quotation_order_ajax_call } |
... | ... | |
999 | 999 |
}); |
1000 | 1000 |
|
1001 | 1001 |
$.contextMenu({ |
1002 |
selector: '.quotations-and-orders-new-context-menu',
|
|
1002 |
selector: ':has(> .quotations-and-orders-new-context-menu:visible)',
|
|
1003 | 1003 |
items: $.extend({ |
1004 | 1004 |
heading: { name: kivi.t8('Create new quotation/order'), className: 'context-menu-heading' } |
1005 | 1005 |
, create: { name: kivi.t8('Create'), icon: "edit", callback: ns.standard_quotation_order_ajax_call } |
... | ... | |
1008 | 1008 |
}); |
1009 | 1009 |
|
1010 | 1010 |
$.contextMenu({ |
1011 |
selector: '.quotations-and-orders-update-context-menu',
|
|
1011 |
selector: ':has(> .quotations-and-orders-update-context-menu:visible)',
|
|
1012 | 1012 |
items: $.extend({ |
1013 | 1013 |
heading: { name: kivi.t8('Update quotation/order'), className: 'context-menu-heading' } |
1014 | 1014 |
, do_update: { name: kivi.t8('Update'), icon: "update", callback: ns.standard_quotation_order_ajax_call } |
Auch abrufbar als: Unified diff
Pflichtenhefte: Tab-spezifisches Menü in gesamter Tab-Fläche erkennen