Browse Source

moved a couple of translatable strings from js include file to translatable view

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
8ba3737b3b
  1. 18
      include/main.js
  2. 19
      view/head.tpl

18
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);

19
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>
Loading…
Cancel
Save