mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 22:20:57 -04:00
Refactored the developer module. When a new module is generated a
skeleton adminstration page is generated as well. @todo is still generate a skeleton block and a skeleton dialog.
This commit is contained in:
@@ -3,12 +3,13 @@ $("#gDeveloperTools").ready(function() {
|
||||
});
|
||||
|
||||
var module_success = function(data) {
|
||||
$("#gGenerateModule").after('<div id="moduleProgress" style="margin-left: 5em;"></div>');
|
||||
$("#gGenerateModule").after('<div id="moduleProgress" style="margin-left: 5.5em;"></div>');
|
||||
$("#moduleProgress").progressbar();
|
||||
|
||||
var task = data.task;
|
||||
var url = data.url;
|
||||
var done = false;
|
||||
var counter = 0;
|
||||
while (!done) {
|
||||
$.ajax({async: false,
|
||||
success: function(data, textStatus) {
|
||||
@@ -19,6 +20,7 @@ var module_success = function(data) {
|
||||
type: "POST",
|
||||
url: url
|
||||
});
|
||||
done = done || ++counter >= 10;
|
||||
}
|
||||
document.location.reload();
|
||||
};
|
||||
@@ -27,7 +29,7 @@ function ajaxify_developer_form(selector, success) {
|
||||
$(selector).ajaxForm({
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if (data.form && data.reseult != "started") {
|
||||
if (data.form && data.result != "started") {
|
||||
$(selector).replaceWith(data.form);
|
||||
ajaxify_developer_form(selector, success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user