From 302ee07acb4772ea4a7b1067b66fc8190138387f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 4 Mar 2009 04:55:23 +0000 Subject: Indentation and whitespace tweaks. --- modules/local_import/js/admin.js | 22 +++++++++++----------- modules/local_import/js/local_import.js | 6 +++--- .../views/local_import_dir_list.html.php | 4 ++-- .../views/local_import_tree_dialog.html.php | 22 +++++++++++----------- 4 files changed, 27 insertions(+), 27 deletions(-) (limited to 'modules') diff --git a/modules/local_import/js/admin.js b/modules/local_import/js/admin.js index e7072127..4102a82b 100644 --- a/modules/local_import/js/admin.js +++ b/modules/local_import/js/admin.js @@ -16,18 +16,18 @@ function add_autocomplete() { } function ajaxify_import_form(options) { $("#gLocalImportAdmin form").ajaxForm({ - dataType: "json", - success: function(data) { - if (data.form) { - $("#gLocalImportAdmin form").replaceWith(data.form); - ajaxify_import_form(); - add_autocomplete(); - } - if (data.result == "success") { - $("#gNoImportPaths").css("display", "none"); + dataType: "json", + success: function(data) { + if (data.form) { + $("#gLocalImportAdmin form").replaceWith(data.form); + ajaxify_import_form(); + add_autocomplete(); + } + if (data.result == "success") { + $("#gNoImportPaths").css("display", "none"); $("#gAuthorizedPath").html(data.paths); - add_onclick(); - } + add_onclick(); + } } }); } diff --git a/modules/local_import/js/local_import.js b/modules/local_import/js/local_import.js index 0fd37b00..ba9f63b0 100644 --- a/modules/local_import/js/local_import.js +++ b/modules/local_import/js/local_import.js @@ -61,7 +61,7 @@ var current = 0; var process_length = 0; function do_import(submit, event) { event.preventDefault(); - $("#gProgressBar").progressbar('value', 0); + $("#gProgressBar").progressbar("value", 0); $("#gProgressBar").css("visibility", "visible"); var check_list = $("#gLocalImport :checkbox[checked]"); process_length = check_list.length; @@ -107,7 +107,7 @@ function process_checkbox(checkbox) { }); }); current++; - $("#gProgressBar").progressbar('value', current / process_length * 100); + $("#gProgressBar").progressbar("value", current / process_length * 100); } } @@ -121,6 +121,6 @@ function process_file(li_element, parms) { url: $("#gLocalImport form").attr("action") }); current++; - $("#gProgressBar").progressbar('value', current / process_length * 100); + $("#gProgressBar").progressbar("value", current / process_length * 100); } diff --git a/modules/local_import/views/local_import_dir_list.html.php b/modules/local_import/views/local_import_dir_list.html.php index d2a8fb57..7041fcc2 100644 --- a/modules/local_import/views/local_import_dir_list.html.php +++ b/modules/local_import/views/local_import_dir_list.html.php @@ -1,12 +1,12 @@
style="display:none"> diff --git a/modules/local_import/views/local_import_tree_dialog.html.php b/modules/local_import/views/local_import_tree_dialog.html.php index 2f432a1e..520a2af0 100644 --- a/modules/local_import/views/local_import_tree_dialog.html.php +++ b/modules/local_import/views/local_import_tree_dialog.html.php @@ -1,26 +1,26 @@ -" /> +" /> - +

    -
  • title ?>
  • +
  • title ?>
"post"), $hidden) ?> -
- -
- - "gImportButton", "name" => "import", "disabled" => true, "class" => "submit"), - t("Import")) ?> - - +
+ +
+ + "gImportButton", "name" => "import", "disabled" => true, "class" => "submit"), t("Import")) ?> + +
-- cgit v1.2.3