summaryrefslogtreecommitdiff
path: root/modules/organize/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-06 19:28:37 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-08-06 19:28:37 -0700
commit144a0d7d34d1d56aebd990f0fed8a4ef1633665d (patch)
treeccf09b450468999e9b0a43efc92c70444caf857c /modules/organize/helpers
parent362b4d70f72fa6baed15bd323a2ca5deea7d6ab3 (diff)
parent6e4023a7207b721694403f38d6afb7a507468498 (diff)
trying to restore the branch from a failed revert
Diffstat (limited to 'modules/organize/helpers')
-rw-r--r--modules/organize/helpers/organize_event.php2
-rw-r--r--modules/organize/helpers/organize_theme.php7
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/organize/helpers/organize_event.php b/modules/organize/helpers/organize_event.php
index 99a28673..887d9c2d 100644
--- a/modules/organize/helpers/organize_event.php
+++ b/modules/organize/helpers/organize_event.php
@@ -23,7 +23,7 @@ class organize_event_Core {
if ($item && access::can("edit", $item) && $item->is_album()) {
$menu->get("options_menu")
- ->append(Menu::factory("link")
+ ->append(Menu::factory("dialog")
->id("organize")
->label(t("Organize Album"))
->css_id("gOrganizeLink")
diff --git a/modules/organize/helpers/organize_theme.php b/modules/organize/helpers/organize_theme.php
index f01ab88b..0fd117c3 100644
--- a/modules/organize/helpers/organize_theme.php
+++ b/modules/organize/helpers/organize_theme.php
@@ -19,8 +19,9 @@
*/
class organize_theme {
static function head($theme) {
- //$theme->script("organize_init.js");
- $theme->script("organize.js");
- $theme->css("organize.css");
+ if (access::can("view", $theme->item()) && access::can("edit", $theme->item())) {
+ $theme->script("organize.js");
+ $theme->css("organize.css");
+ }
}
}