Revision 25fb47b1
Von Moritz Bunkus vor etwa 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
629 | 629 |
|
630 | 630 |
ns.find_versioned_copy_id = function(clicked_elt) { |
631 | 631 |
var id = $(clicked_elt).find("[name=versioned_copy_id]"); |
632 |
return id ? id.val() : undefined; |
|
632 |
return id.size() ? id.val() : undefined;
|
|
633 | 633 |
}; |
634 | 634 |
|
635 | 635 |
ns.disable_versioned_copy_item_commands = function(key, opt) { |
... | ... | |
649 | 649 |
ns.create_pdf_for_versioned_copy_ajax_call = function(key, opt) { |
650 | 650 |
var data = { |
651 | 651 |
action: "RequirementSpec/create_pdf", |
652 |
id: ns.find_versioned_copy_id(opt.$trigger) |
|
652 |
id: ns.find_versioned_copy_id(opt.$trigger) || $('#requirement_spec_id').val()
|
|
653 | 653 |
}; |
654 | 654 |
$.download("controller.pl", data); |
655 | 655 |
|
Auch abrufbar als: Unified diff
Pflichtenheftversionen: »PDF Downloaden« für Arbeitskopie-Eintrag gefixt