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

This commit is contained in:
Mike Macgirvin 2010-09-29 16:09:10 -07:00
parent d150b8e8b1
commit 8ba3737b3b
2 changed files with 19 additions and 18 deletions

View File

@ -16,20 +16,6 @@
document.getElementById(theID).style.display = "none" 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 src = null;
var prev = null; var prev = null;
@ -137,10 +123,6 @@
} }
function confirmDelete() {
return confirm("Delete this item?");
}
function imgbright(node) { function imgbright(node) {
$(node).attr("src",$(node).attr("src").replace('hide','show')); $(node).attr("src",$(node).attr("src").replace('hide','show'));
$(node).css('width',24); $(node).css('width',24);

View File

@ -7,5 +7,24 @@
<![endif]--> <![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script> <script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.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>