forked from science-ation/science-ation
Show the report name instead of the report id in the dialog title
This commit is contained in:
parent
6d4186182e
commit
da17e3461c
@ -57,6 +57,7 @@ case 'load_report':
|
||||
$ret['type'] = $report['option']['type'];
|
||||
$ret['stock'] = $report['option']['stock'];
|
||||
$ret['comment'] = $report['desc'];
|
||||
$ret['name'] = $report['name'];
|
||||
$ret['category'] = '';
|
||||
} else {
|
||||
$q = mysql_query("SELECT * FROM reports_committee WHERE id='$id'");
|
||||
@ -161,7 +162,7 @@ function edit_report(id,reports_id)
|
||||
$("#report_format").val(json.format);
|
||||
$("#report_comment").val(json.comment);
|
||||
/* Update the dialog title */
|
||||
$('#popup_editor').dialog('option', 'title', "<?=i18n('Report')?>: " + json.id);
|
||||
$('#popup_editor').dialog('option', 'title', "<?=i18n('Report')?>: " + json.name);
|
||||
|
||||
popup_editor(id);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user