Changeset 3893
- Timestamp:
- 09/12/08 06:34:21 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/projects/quickhoney/website/static/javascript.js
r3888 r3893 250 250 } 251 251 252 function permalink(path) { 253 return A({ href: '/' + path, onclick: function () { document.location.href = '#' + path; return false; } }, 'permalink'); 254 } 255 252 256 function make_upload_item(item) 253 257 { … … 261 265 H1(null, item.name), 262 266 item.date, ' by ', item.owner, ' | ', 263 A({ href: '/' + path, onclick: function () { jump_to(path) } }, 'permalink'),267 permalink(path), 264 268 BR(), 265 269 item.description)); … … 285 289 H1(null, item.title), 286 290 item.date, ' by ', item.owner, ' | ', 287 A({ href: 'news/' + item.name }, 'permalink'),291 permalink('news/' + item.name), 288 292 BR(), 289 293 DIV({ 'class': 'item-text' }, item.text), … … 1005 1009 var image_info = []; 1006 1010 1007 replaceChildNodes("metadata", "Image name: ", current_image.name, BR()); 1011 var link = current_directory + '/' + current_subdirectory + '/' + encodeURI(query_result[query_position].name); 1012 1013 replaceChildNodes("metadata", "Image name: ", current_image.name, " ", permalink(link), BR()); 1008 1014 if (current_image.client != "") { 1009 1015 appendChildNodes("metadata", "Client: ", current_image.client, BR()); 1010 1016 } 1011 appendChildNodes("metadata", current_image.width + "x" + current_image.height + "px | " + percent + "%"); 1017 1018 appendChildNodes("metadata", current_image.width + "x" + current_image.height 1019 + "px | " + percent + "%"); 1012 1020 1013 1021 if (may_enlarge) { 1014 replaceChildNodes("full_click", A({ href: '#' + current_directory + '/' + current_subdirectory + '/' 1015 + encodeURI(query_result[query_position].name), onclick: enlarge }, 1022 replaceChildNodes("full_click", A({ href: '#' + link, onclick: enlarge }, 1016 1023 "full size")); 1017 1024 } else {
