aboutsummaryrefslogtreecommitdiff
path: root/views/default/canvas_header
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 13:34:28 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 13:34:28 +0000
commit6fa9ce77c2efaabe0ec983ab62cbafdc9bc5c796 (patch)
tree15925d496deb4724399fb22c0648a30990098f65 /views/default/canvas_header
parentb52b7322fa5ecf0cc6668814ed7c85e38abcafd2 (diff)
downloadelgg-6fa9ce77c2efaabe0ec983ab62cbafdc9bc5c796.tar.gz
elgg-6fa9ce77c2efaabe0ec983ab62cbafdc9bc5c796.tar.bz2
delete confirmation added to delete pages
git-svn-id: https://code.elgg.org/elgg/trunk@2810 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/canvas_header')
-rw-r--r--views/default/canvas_header/submenu_template.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/canvas_header/submenu_template.php b/views/default/canvas_header/submenu_template.php
index ff43ac153..e73b76f0e 100644
--- a/views/default/canvas_header/submenu_template.php
+++ b/views/default/canvas_header/submenu_template.php
@@ -5,6 +5,12 @@
} else {
$selected = "";
}
+
+ if (isset($vars['onclick']) && $vars['onclick'] == true) {
+ $onclick = "onclick=\"javascript:return confirm('". elgg_echo('deleteconfirm') . "')\"";
+ } else {
+ $onclick = "";
+ }
?>
-<li <?php echo $selected; ?>><a href="<?php echo $vars['href']; ?>"><?php echo $vars['label']; ?></a></li> \ No newline at end of file
+<li <?php echo $selected; ?>><a href="<?php echo $vars['href']; ?>" <?php echo $onclick; ?>><?php echo $vars['label']; ?></a></li> \ No newline at end of file