summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/local_import/js/admin.js22
-rw-r--r--modules/local_import/js/local_import.js6
-rw-r--r--modules/local_import/views/local_import_dir_list.html.php4
-rw-r--r--modules/local_import/views/local_import_tree_dialog.html.php22
4 files changed, 27 insertions, 27 deletions
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 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<span><?= t("Authorized Paths") ?></span>
<ul id="gPathList">
-<? foreach ($paths as $id => $path): ?>
+ <? foreach ($paths as $id => $path): ?>
<li class="ui-icon-left">
<span id="icon_<?= $id?>" class="gRemoveDir ui-icon ui-icon-trash"></span>
<?= $path ?>
</li>
-<? endforeach ?>
+ <? endforeach ?>
</ul>
<div id="gNoImportPaths" <? if (!empty($paths)): ?>style="display:none"<? endif ?>>
<span class="gWarning"><?= t("No Authorized upload paths defined") ?></span>
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 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<link media="screen, projection" rel="stylesheet" type="text/css" href="<?= url::file("modules/local_import/css/local_import.css") ?>" />
+<link media="screen, projection" rel="stylesheet" type="text/css"
+ href="<?= url::file("modules/local_import/css/local_import.css") ?>" />
<?= html::script("modules/local_import/js/local_import.js"); ?>
-
+
<div id="gLocalImport">
<h1 style="display: none;"><?= sprintf(t("Import Photos to '%s'"), $album_title) ?></h1>
<p id="gDescription"><?= t("Photos will be imported to album:") ?></p>
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
- <li><?= $parent->title ?></li>
+ <li><?= $parent->title ?></li>
<? endforeach ?>
<li class="active"><?= $album_title ?></li>
</ul>
<?= form::open($action, array("method" => "post"), $hidden) ?>
- <div id="gLocalImportTree" >
- <?= $tree ?>
- </div>
- <span>
- <?= form::submit(array("id" => "gImportButton", "name" => "import", "disabled" => true, "class" => "submit"),
- t("Import")) ?>
- </span>
- <?= form::close() ?>
+ <div id="gLocalImportTree" >
+ <?= $tree ?>
+ </div>
+ <span>
+ <?= form::submit(array("id" => "gImportButton", "name" => "import", "disabled" => true, "class" => "submit"), t("Import")) ?>
+ </span>
+ <?= form::close() ?>
<div id="gProgressBar" ></div>
</div>