Changeset 2566:9bf417837888 for admin/js/_posts_list.js
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_posts_list.js
r2531 r2566 3 3 var postId = $(line).attr('id').substr(1); 4 4 var tr = document.getElementById('pe'+postId); 5 5 6 6 if ( !tr && ( action == 'toggle' || action == 'open' ) ) { 7 7 tr = document.createElement('tr'); … … 11 11 td.className = 'expand'; 12 12 tr.appendChild(td); 13 13 14 14 // Get post content 15 15 $.get('services.php',{f:'getPostById', id: postId, post_type: ''},function(data) { 16 16 var rsp = $(data).children('rsp')[0]; 17 17 18 18 if (rsp.attributes[0].value == 'ok') { 19 19 var post = $(rsp).find('post_display_content').text(); 20 20 var post_excerpt = $(rsp).find('post_display_excerpt').text(); 21 21 var res = ''; 22 22 23 23 if (post) { 24 24 if (post_excerpt) { … … 32 32 } 33 33 }); 34 34 35 35 $(line).addClass('expand'); 36 36 line.parentNode.insertBefore(tr,line.nextSibling);
Note: See TracChangeset
for help on using the changeset viewer.