]> git.mxchange.org Git - friendica.git/commitdiff
moved a couple of translatable strings from js include file to translatable view
authorMike Macgirvin <mike@macgirvin.com>
Wed, 29 Sep 2010 23:09:10 +0000 (16:09 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Wed, 29 Sep 2010 23:09:10 +0000 (16:09 -0700)
include/main.js
view/head.tpl

index 3b6528ee9502abb6cb138e168f3683bde3aba7aa..fcb6677d32a379eca640078de3b92e39ff294ace 100644 (file)
       document.getElementById(theID).style.display = "none" 
   }
 
-       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);
-               }
-       }
 
        var src = null;
        var prev = null;
 
        }
 
-       function confirmDelete() { 
-               return confirm("Delete this item?");
-       }
-
        function imgbright(node) {
                $(node).attr("src",$(node).attr("src").replace('hide','show'));
                $(node).css('width',24);
index dd6162f09efb7afd4c7b695961023ca7d4712453..fc2177b8dbf8b3d6e618a56cbcde1f050b7610a9 100644 (file)
@@ -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>