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['type'] = $report['option']['type'];
|
||||||
$ret['stock'] = $report['option']['stock'];
|
$ret['stock'] = $report['option']['stock'];
|
||||||
$ret['comment'] = $report['desc'];
|
$ret['comment'] = $report['desc'];
|
||||||
|
$ret['name'] = $report['name'];
|
||||||
$ret['category'] = '';
|
$ret['category'] = '';
|
||||||
} else {
|
} else {
|
||||||
$q = mysql_query("SELECT * FROM reports_committee WHERE id='$id'");
|
$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_format").val(json.format);
|
||||||
$("#report_comment").val(json.comment);
|
$("#report_comment").val(json.comment);
|
||||||
/* Update the dialog title */
|
/* 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);
|
popup_editor(id);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user