Changeset 17409


Ignore:
Timestamp:
2008/07/08 16:15:32 (16 years ago)
Author:
pineray
Message:

ファイル管理でファイルを選択できるように

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/html/user_data/packages/default/js/file_manager.js

    r17406 r17409  
    225225// imgタグの画像変更 
    226226function fnChgImg(fileName,imgName){ 
    227     document.getElementById(imgName).src = fileName; 
     227    $("#" + imgName).attr("src", fileName); 
    228228} 
    229229 
    230230// ファイル選択 
    231231function 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); 
    234234    old_select_id = id; 
    235235} 
     
    238238function fnChangeBgColor(id, val) { 
    239239    if (old_select_id != id) { 
    240         document.getElementById(id).style.backgroundColor = val; 
     240        $("#" + id).children("td").css("background-color", val); 
    241241    } 
    242242} 
     
    244244// test 
    245245function view_test(id) { 
    246     document.getElementById(id).value=tree 
    247 } 
     246    $("#" + id).val(tree) 
     247} 
Note: See TracChangeset for help on using the changeset viewer.