Changeset 1786 for sandbox/filemanager
- Timestamp:
- 12/08/09 10:27:33 (15 years ago)
- Location:
- sandbox/filemanager/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/js/common_functions.js
r1785 r1786 151 151 } 152 152 153 function presetComments(el){ 154 if (permissions['edit'] == 0){ 155 el.blur(); 156 write_error(get_lang('You have no permission to access this file')); 157 } 158 oldComment = el.value; 159 } 160 153 161 function setComments(el){ 162 if (el.value == oldComment){ 163 el.value = oldComment; 164 return; 165 } 154 166 var filename = base64_encode(el.id); 155 167 cExecute('./index.php?menuaction=filemanager.vfs_functions.editComment&file='+filename+'&comment='+base64_encode(el.value),updateComment); 168 } 169 170 function enterComments(e,id){ 171 if (e.keyCode == 13) //Enter 172 document.getElementById(id).blur(); 156 173 } 157 174 -
sandbox/filemanager/js/draw_api.js
r1785 r1786 271 271 if (preferences.createdby_id =='1') retBuff += fl.td+file.creatdby+'</td>'; 272 272 if (preferences.modifiedby_id =='1') retBuff += fl.td+file.modifdby+'</td>'; 273 if (preferences.comment =='1') retBuff += fl.td+'<input id="'+file .name+'" class="inputComment" onblur="setComments(this)" value="'+file.comm+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>';273 if (preferences.comment =='1') retBuff += fl.td+'<input id="'+files[i].name+'" class="inputComment" onkeydown="enterComments(event,\''+files[i].name+'\')" onclick="presetComments(this)" onblur="setComments(this)" value="'+files[i].comm+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>'; 274 274 if (preferences.version =='1') retBuff += fl.td+'<span onclick="loadHistory(\''+file.name+'\')">'+file.vers+'</span></td>'; 275 275 return retBuff; -
sandbox/filemanager/js/global.js
r1785 r1786 7 7 8 8 var currentPath = ""; 9 var oldComment; 9 10 10 11 var templatePath = './filemanager/templates/default/';
Note: See TracChangeset
for help on using the changeset viewer.