--- /dev/null
+function addTag(resource, type, endpoint)
+{
+ if (!$('newtags-input_' + resource).value.blank()) {
+ var params = new Object();
+ params.imple="TagActions/action=add/resource=" + resource + "/type=" + type + "/tags=" + $('newtags-input_' + resource).value;
+ new Ajax.Updater({success:'tags_' + resource},
+ endpoint,
+ {
+ method: 'post',
+ parameters: params,
+ onComplete: function() {$('newtags-input_' + resource).value = "";}
+ }
+ );
+ }
+
+ return true;
+}
+
+function removeTag(resource, type, tagid, endpoint)
+{
+ var params = new Object();
+ params.imple = "TagActions/action=remove/resource=" + resource + "/type=" + type + "/tags=" + tagid;
+ new Ajax.Updater({success:'tags_' + resource},
+ endpoint,
+ {
+ method: 'post',
+ parameters: params
+ }
+ );
+
+ return true;
+}
\ No newline at end of file
-function addTag(resource, type, endpoint)
-{
- if (!$('newtags-input_' + resource).value.blank()) {
- var params = new Object();
- params.imple="TagActions/action=add/resource=" + resource + "/type=" + type + "/tags=" + $('newtags-input_' + resource).value;
- new Ajax.Updater({success:'tags_' + resource},
- endpoint,
- {
- method: 'post',
- parameters: params,
- onComplete: function() {$('newtags-input_' + resource).value = "";}
- }
- );
- }
-
- return true;
-}
-
-function removeTag(resource, type, tagid, endpoint)
-{
- var params = new Object();
- params.imple = "TagActions/action=remove/resource=" + resource + "/type=" + type + "/tags=" + tagid;
- new Ajax.Updater({success:'tags_' + resource},
- endpoint,
- {
- method: 'post',
- parameters: params
- }
- );
-
- return true;
-}
-
-function toggleTags(domid)
-{
- $('tag-show_' + domid).toggle();
- $('tag-hide_' + domid).toggle();
- $('tagnode_' + domid).toggle();
-}
\ No newline at end of file
+function addTag(B,A,D){if(!$("newtags-input_"+B).value.blank()){var C=new Object();C.imple="TagActions/action=add/resource="+B+"/type="+A+"/tags="+$("newtags-input_"+B).value;new Ajax.Updater({success:"tags_"+B},D,{method:"post",parameters:C,onComplete:function(){$("newtags-input_"+B).value=""}})}return true}function removeTag(C,B,A,E){var D=new Object();D.imple="TagActions/action=remove/resource="+C+"/type="+B+"/tags="+A;new Ajax.Updater({success:"tags_"+C},E,{method:"post",parameters:D});return true};
\ No newline at end of file
+<script type="text/javascript">
+ function toggleTags(domid)
+ {
+ $('tag-show_' + domid).toggle();
+ $('tag-hide_' + domid).toggle();
+ $('tagnode_' + domid).toggle();
+ }
+</script>
<?php
Horde::addScriptFile('QuickFinder.js', 'horde', true);
Horde::addScriptFile('redbox.js', 'horde', true);