summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-08-30 22:06:26 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-08-30 22:06:26 -0700
commit866f8eefc66f24f9fcfb9f20bdc0add3a654db76 (patch)
tree11f39ff6251b1c90cc3f03a37fd9ec67243db991 /modules/gallery/views
parent0f2daf29acc051e7fe79abc625406684e9da8196 (diff)
parentd5ebcb91ad8401df8a393f84ade82150467dbf33 (diff)
Fix for ticket #1320. Hook the loading of the initial albums and check to see if the loaded item is the requested item.
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/admin_theme_options.html.php31
-rw-r--r--modules/gallery/views/form_uploadify.html.php9
-rw-r--r--modules/gallery/views/form_uploadify_buttons.html.php2
3 files changed, 10 insertions, 32 deletions
diff --git a/modules/gallery/views/admin_theme_options.html.php b/modules/gallery/views/admin_theme_options.html.php
index b4a90682..e452913e 100644
--- a/modules/gallery/views/admin_theme_options.html.php
+++ b/modules/gallery/views/admin_theme_options.html.php
@@ -1,35 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<script type="text/javascript">
- $("#g-theme-options-form").ready(function() {
- var contents = $("#g-theme-options-form fieldset:not(:last-child)");
- if (contents.length > 1) {
- $("<div id='g-theme-options-form-tabs'>" +
- " <ul class='tabnav'></ul>" +
- "</div>").insertBefore("#g-theme-options-form fieldset:last-child");
- $(contents).each(function(index) {
- var text = $("legend", this).text();
- var tabId = "tab_" + index;
- var tabContentId = "tab_content_" + index;
- if (text == "") {
- text = <?= t("Tab_")->for_js() ?> + index;
- }
- $(".tabnav").append(
- "<li><a id='" + tabId + "' href='#" + tabContentId + "'>" + text + "</a></li>");
- $("#g-theme-options-form-tabs").append(
- "<div id='" + tabContentId + "' class='tabdiv'></div>");
- if ($("li.g-error", this).length > 0) {
- $("#" + tabId).addClass("g-error");
- }
- $("#" + tabContentId).append($("ul", this));
- $(this).remove();
- });
- $("#g-theme-options-form-tabs").tabs({});
- } else {
- $("#g-theme-options-form fieldset:first legend").hide();
- }
- });
-</script>
-
<div class="g-block">
<h1> <?= t("Theme options") ?> </h1>
<div class="g-block-content">
diff --git a/modules/gallery/views/form_uploadify.html.php b/modules/gallery/views/form_uploadify.html.php
index 9bd02f9b..96cc0e26 100644
--- a/modules/gallery/views/form_uploadify.html.php
+++ b/modules/gallery/views/form_uploadify.html.php
@@ -21,12 +21,18 @@
$("#g-upload-cancel-all")
.addClass("ui-state-disabled")
.attr("disabled", "disabled");
+ $("#g-upload-done")
+ .removeClass("ui-state-disabled")
+ .attr("disabled", null);
return true;
},
onClearQueue: function(event) {
$("#g-upload-cancel-all")
.addClass("ui-state-disabled")
.attr("disabled", "disabled");
+ $("#g-upload-done")
+ .removeClass("ui-state-disabled")
+ .attr("disabled", null);
return true;
},
onComplete: function(event, queueID, fileObj, response, data) {
@@ -71,6 +77,9 @@
$("#g-upload-cancel-all")
.removeClass("ui-state-disabled")
.attr("disabled", null);
+ $("#g-upload-done")
+ .addClass("ui-state-disabled")
+ .attr("disabled", "disabled");
}
return true;
}
diff --git a/modules/gallery/views/form_uploadify_buttons.html.php b/modules/gallery/views/form_uploadify_buttons.html.php
index d88bb6aa..98729bd7 100644
--- a/modules/gallery/views/form_uploadify_buttons.html.php
+++ b/modules/gallery/views/form_uploadify_buttons.html.php
@@ -4,5 +4,5 @@
<?= t("Done") ?>
</button>
<button id="g-upload-cancel-all" class="ui-state-default ui-corner-all ui-state-disabled" onclick="$('#g-uploadify').uploadifyClearQueue();return false;" disabled="disabled">
- <?= t("Cancel All") ?>
+ <?= t("Cancel uploads") ?>
</button>