summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-30 20:32:59 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-30 20:32:59 -0700
commit200b78ee59ad54eb18d36334e2302b88511429ba (patch)
tree1b631c35e0d96e817cc6cd4439a5b78713198249 /modules/digibug/helpers
parentb541935d6f2dd0a135b923683a41c4488b896f55 (diff)
Revert the change that removed adding the click handler for the digibug print
functionality. Just return false when using javascript:digibug_popup was not enough from having the browser switch pages and show a page with the word false. Using an event handler allows us to call event.preventDefault which cancels the page switch.
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r--modules/digibug/helpers/digibug_menu.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/digibug/helpers/digibug_menu.php b/modules/digibug/helpers/digibug_menu.php
index 4b8db5a2..f1d4fc1d 100644
--- a/modules/digibug/helpers/digibug_menu.php
+++ b/modules/digibug/helpers/digibug_menu.php
@@ -32,8 +32,7 @@ class digibug_menu {
Menu::factory("link")
->id("digibug")
->label(t("Print with Digibug"))
- ->url("javascript:digibug_popup('" .
- url::site("digibug/print_photo/$item->id?csrf=$theme->csrf") . "')")
+ ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
->css_id("gDigibugLink"));
}
@@ -43,8 +42,7 @@ class digibug_menu {
Menu::factory("link")
->id("digibug")
->label(t("Print with Digibug"))
- ->url("javascript:digibug_popup('" .
- url::site("digibug/print_photo/$item->id?csrf=$theme->csrf") . "')")
+ ->url(url::site("digibug/print_photo/$item->id?csrf=$theme->csrf"))
->css_id("gDigibugLink"));
}
}