diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/canvas_header/submenu_template.php | 8 |
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 |