mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
Changed the name of the method get_task_log to get_log Changed the default name of the file when the log is downloaded to gallery3_task_log.txt
20 lines
741 B
PHP
20 lines
741 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<script type="text/javascript">
|
|
dismiss = function() {
|
|
window.location.reload();
|
|
}
|
|
download = function(){
|
|
// send request
|
|
$('<form action="<?= url::site("admin/maintenance/save_log/$task->id?csrf=$csrf") ?>" method="post"></form>').
|
|
appendTo('body').submit().remove();
|
|
};
|
|
</script>
|
|
<div id="gTaskLogDialog">
|
|
<h1> <?= $task->name ?> </h1>
|
|
<div class="gTaskLog">
|
|
<pre><?= p::purify($task->get_log()) ?></pre>
|
|
</div>
|
|
<button id="gCloseButton" class="ui-state-default ui-corner-all" onclick="dismiss()"><?= t("Close") ?></button>
|
|
<button id="gSaveButton" class="ui-state-default ui-corner-all" onclick="download()"><?= t("Save") ?></button>
|
|
</div>
|