mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-01 09:19:09 -04:00
Fix for ticket #1181. Use $.getJSON to retrieve the json contents of the dialog. Convert all the controllers
that create the data to go into a dialog to return the html as part of a json object.
This commit is contained in:
@@ -64,7 +64,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
|
||||
log::info("tasks", t("Task %task_name started (task id %task_id)",
|
||||
array("task_name" => $task->name, "task_id" => $task->id)),
|
||||
html::anchor("admin/maintenance", t("maintenance")));
|
||||
print $view;
|
||||
print json_encode(array("form" => (string) $view));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +86,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
|
||||
log::info("tasks", t("Task %task_name resumed (task id %task_id)",
|
||||
array("task_name" => $task->name, "task_id" => $task->id)),
|
||||
html::anchor("admin/maintenance", t("maintenance")));
|
||||
print $view;
|
||||
print json_encode(array("form" => (string) $view));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -103,7 +103,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
|
||||
$view = new View("admin_maintenance_show_log.html");
|
||||
$view->task = $task;
|
||||
|
||||
print $view;
|
||||
print json_encode(array("form" => (string) $view));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user