Revision 55e399ab
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
269 | 269 |
return ns.handle_item_popup_menu_markings(opt, false); |
270 | 270 |
}; |
271 | 271 |
|
272 |
// ------------------------------------------------------------------------- |
|
273 |
// ------------------------------- templates ------------------------------- |
|
274 |
// ------------------------------------------------------------------------- |
|
275 |
|
|
272 | 276 |
ns.paste_template = function(key, opt, other_data) { |
273 | 277 |
open_jqm_window({ url: 'controller.pl?action=RequirementSpec/select_template_to_paste' }); |
274 | 278 |
}; |
275 | 279 |
|
280 |
ns.paste_selected_template = function(template_id) { |
|
281 |
$('#jqm_popup_dialog').jqmClose(); |
|
282 |
|
|
283 |
var data = { |
|
284 |
action: "RequirementSpec/paste_template", |
|
285 |
id: $('#requirement_spec_id').val(), |
|
286 |
template_id: template_id, |
|
287 |
current_content_type: $('#current_content_type').val(), |
|
288 |
current_content_id: $('#current_content_id').val() |
|
289 |
}; |
|
290 |
|
|
291 |
// console.log("I would normally POST the following now:"); |
|
292 |
// console.log(data); |
|
293 |
$.post("controller.pl", data, kivi.eval_json_result); |
|
294 |
|
|
295 |
return true; |
|
296 |
}; |
|
297 |
|
|
276 | 298 |
// ------------------------------------------------------------------------- |
277 | 299 |
// -------------------------- time/cost estimate --------------------------- |
278 | 300 |
// ------------------------------------------------------------------------- |
Auch abrufbar als: Unified diff
Pflichtenheftvorlagen einfügen