diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-07 21:20:37 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-07 21:20:37 -0700 |
| commit | 74d4a4c0fd0d1aa2e93e62397b0b0a10d55b986d (patch) | |
| tree | 70d5a48fc8bfcf0a7db0ceb94d284d6df38c92f0 /modules/gallery/views/admin_maintenance_show_log.html.php | |
| parent | faabae5dae712ebff656abe8ebc493d8e031d4a3 (diff) | |
| parent | 6ac5238b83d58824eb9327406a2ee50b7e603214 (diff) | |
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/gallery/views/admin_maintenance_show_log.html.php')
| -rw-r--r-- | modules/gallery/views/admin_maintenance_show_log.html.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_maintenance_show_log.html.php b/modules/gallery/views/admin_maintenance_show_log.html.php new file mode 100644 index 00000000..9d850986 --- /dev/null +++ b/modules/gallery/views/admin_maintenance_show_log.html.php @@ -0,0 +1,19 @@ +<?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> |
