Index: /branches/comu-ver2/html/user_data/packages/default/js/file_manager.js
===================================================================
--- /branches/comu-ver2/html/user_data/packages/default/js/file_manager.js (revision 17406)
+++ /branches/comu-ver2/html/user_data/packages/default/js/file_manager.js (revision 17409)
@@ -225,11 +225,11 @@
// imgタグの画像変更
function fnChgImg(fileName,imgName){
- document.getElementById(imgName).src = fileName;
+ $("#" + imgName).attr("src", fileName);
}
// ファイル選択
function fnSelectFile(id, val) {
- if(old_select_id != '') document.getElementById(old_select_id).style.backgroundColor = '';
- document.getElementById(id).style.backgroundColor = val;
+ if(old_select_id != '') $("#" + old_select_id).children("td").css("background-color", "#FFFFFF");
+ $("#" + id).children("td").css("background-color", val);
old_select_id = id;
}
@@ -238,5 +238,5 @@
function fnChangeBgColor(id, val) {
if (old_select_id != id) {
- document.getElementById(id).style.backgroundColor = val;
+ $("#" + id).children("td").css("background-color", val);
}
}
@@ -244,4 +244,4 @@
// test
function view_test(id) {
- document.getElementById(id).value=tree
-}
+ $("#" + id).val(tree)
+}