aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/head.tpl')
-rw-r--r--view/head.tpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/view/head.tpl b/view/head.tpl
index dd6162f09..fc2177b8d 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -7,5 +7,24 @@
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
+<script>
+
+ function confirmDelete() { return confirm("Delete this item?"); }
+ function commentOpen(obj,id) {
+ if(obj.value == 'Comment') {
+ obj.value = '';
+ obj.className = "comment-edit-text-full";
+ openMenu("comment-edit-submit-wrapper-" + id);
+ }
+ }
+ function commentClose(obj,id) {
+ if(obj.value == '') {
+ obj.value = 'Comment';
+ obj.className="comment-edit-text-empty";
+ closeMenu("comment-edit-submit-wrapper-" + id);
+ }
+ }
+
+</script>