equal
deleted
inserted
replaced
33 row.childNodes[i].style.backgroundColor = 'transparent'; |
33 row.childNodes[i].style.backgroundColor = 'transparent'; |
34 } |
34 } |
35 } |
35 } |
36 var fader = new Spry.Effect.Highlight(row, {to:'#AA0000', duration: 750}); |
36 var fader = new Spry.Effect.Highlight(row, {to:'#AA0000', duration: 750}); |
37 fader.start(); |
37 fader.start(); |
38 setTimeout('_global_ng_row.parentNode.removeChild(_global_ng_row);', 750); |
38 setTimeout('_global_ng_row.parentNode.removeChild(_global_ng_row); nuggie_check_postlist_empty();', 750); |
39 } |
39 } |
40 else |
40 else |
41 { |
41 { |
42 alert(ajax.responseText); |
42 alert(ajax.responseText); |
43 } |
43 } |
46 return false; |
46 return false; |
47 } |
47 } |
48 catch(e) |
48 catch(e) |
49 { |
49 { |
50 return true; |
50 return true; |
|
51 } |
|
52 } |
|
53 |
|
54 function nuggie_check_postlist_empty() |
|
55 { |
|
56 if ( document.getElementById('nuggie_postlist').childNodes.length == 1 ) |
|
57 { |
|
58 var td = document.createElement('td'); |
|
59 td.className = 'row3'; |
|
60 td.setAttribute('colspan', '6'); |
|
61 td.appendChild(document.createTextNode('No posts.')); |
|
62 td.style.textAlign = 'center'; |
|
63 var tr = document.createElement('tr'); |
|
64 tr.appendChild(td); |
|
65 document.getElementById('nuggie_postlist').appendChild(tr); |
51 } |
66 } |
52 } |
67 } |
53 |
68 |
54 function ajaxNuggieTogglePublished(id, obj) |
69 function ajaxNuggieTogglePublished(id, obj) |
55 { |
70 { |