Revision e8ac38a6
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
159 | 159 |
return true; |
160 | 160 |
} |
161 | 161 |
|
162 |
function submit_edit_text_block_form(id_base) { |
|
163 |
var id = $('#' + id_base + '_id').val(); |
|
164 |
var url = "controller.pl?" + $('#' + id_base + '_form').serialize(); |
|
165 |
var data = { |
|
166 |
action: 'RequirementSpecTextBlock/ajax_' + (id ? 'update' : 'create'), |
|
167 |
id: id, |
|
168 |
form_prefix: id_base |
|
169 |
}; |
|
170 |
$.post(url, data, eval_json_result); |
|
171 |
return true; |
|
172 |
} |
|
173 |
|
|
174 | 162 |
function cancel_edit_text_block_form(id_base) { |
175 | 163 |
var id = $('#' + id_base + '_id').val(); |
176 | 164 |
$('#' + id_base + '_form').remove(); |
Auch abrufbar als: Unified diff
Pflichtenhefttextblöcke: Umstellung submit_ajax_form()