- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/html/user_data/packages/default/js/file_manager.js
r16748 r18609 158 158 function fnTreeMenu(tName, imgName, path) { 159 159 160 tMenu = document.all[tName].style;161 162 if(tMenu. display== 'none') {160 tMenu = $("#" + tName); 161 162 if(tMenu.css("display") == 'none') { 163 163 fnChgImg(IMG_MINUS, imgName); 164 tMenu. display = "block";164 tMenu.show(); 165 165 // 階層の開いた状態を保持 166 166 arrTreeStatus.push(path); … … 168 168 } else { 169 169 fnChgImg(IMG_PLUS, imgName); 170 tMenu. display = "none";170 tMenu.hide(); 171 171 // 閉じ状態を保持 172 172 fnDelTreeStatus(path); … … 225 225 // imgタグの画像変更 226 226 function fnChgImg(fileName,imgName){ 227 document.getElementById(imgName).src = fileName;227 $("#" + imgName).attr("src", fileName); 228 228 } 229 229 230 230 // ファイル選択 231 231 function fnSelectFile(id, val) { 232 if(old_select_id != '') document.getElementById(old_select_id).style.backgroundColor = '';233 document.getElementById(id).style.backgroundColor = val;232 if(old_select_id != '') $("#" + old_select_id).children("td").css("background-color", "#FFFFFF"); 233 $("#" + id).children("td").css("background-color", val); 234 234 old_select_id = id; 235 235 } … … 238 238 function fnChangeBgColor(id, val) { 239 239 if (old_select_id != id) { 240 document.getElementById(id).style.backgroundColor = val;240 $("#" + id).children("td").css("background-color", val); 241 241 } 242 242 } … … 244 244 // test 245 245 function view_test(id) { 246 document.getElementById(id).value=tree247 } 246 $("#" + id).val(tree) 247 }
Note: See TracChangeset
for help on using the changeset viewer.