aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-29 16:09:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-29 16:09:10 -0700
commit8ba3737b3b7284c9b7cf40028240ebf89daad1d7 (patch)
tree7676fe6285009deedf1704a7479e77e2e263cae9
parentd150b8e8b13944153231c6fc475d81c689464348 (diff)
downloadvolse-hubzilla-8ba3737b3b7284c9b7cf40028240ebf89daad1d7.tar.gz
volse-hubzilla-8ba3737b3b7284c9b7cf40028240ebf89daad1d7.tar.bz2
volse-hubzilla-8ba3737b3b7284c9b7cf40028240ebf89daad1d7.zip
moved a couple of translatable strings from js include file to translatable view
-rw-r--r--include/main.js18
-rw-r--r--view/head.tpl19
2 files changed, 19 insertions, 18 deletions
diff --git a/include/main.js b/include/main.js
index 3b6528ee9..fcb6677d3 100644
--- a/include/main.js
+++ b/include/main.js
@@ -16,20 +16,6 @@
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;
@@ -137,10 +123,6 @@
}
- function confirmDelete() {
- return confirm("Delete this item?");
- }
-
function imgbright(node) {
$(node).attr("src",$(node).attr("src").replace('hide','show'));
$(node).css('width',24);
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>