[Paulscriptsmods-checkin] ajax_shout/root ajax.php, 1.21.2.15, 1.21.2.16
Status: Beta
Brought to you by:
paulsohier
From: Paul S. <pau...@us...> - 2007-06-08 21:35:52
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26190/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: Lot of bug fixes. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.15 retrieving revision 1.21.2.16 diff -C2 -d -r1.21.2.15 -r1.21.2.16 *** ajax.php 1 Jun 2007 11:16:51 -0000 1.21.2.15 --- ajax.php 8 Jun 2007 21:35:52 -0000 1.21.2.16 *************** *** 486,492 **** bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; ! bbcode.value = bbcode.defaultValue = ' U '; bbcode.style.textDecoration = 'underline'; bbcode.style.width = '33px'; bbcode.onclick = function() { --- 486,493 ---- bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; ! bbcode.value = bbcode.defaultValue = 'U'; bbcode.style.textDecoration = 'underline'; bbcode.style.width = '33px'; + bbcode.style.height = '50px' bbcode.onclick = function() { *************** *** 717,720 **** --- 718,728 ---- function add_style(el, s) { + var c = el.getAttribute('class'); + + if (c != null) + { + s.className = c; + } + f = el.getAttribute("style"); *************** *** 756,759 **** --- 764,771 ---- s.style.color = f2[1]; break; + + case 'text-decoration': + s.style.textDecoration = f2[1]; + break; } } *************** *** 796,799 **** --- 808,817 ---- var d = ce('div'); var j = 1; + + if (nr < <?php echo $shout_number; ?>) + { + return; + } + for (var i = 0; i < nr ; i = i + <?php echo $shout_number; ?>) { *************** *** 946,949 **** --- 964,969 ---- var inh = tmp[i]; dt.style.width = '15%'; + + dd.style.paddingLeft = '3px'; var s = ce('span'); *************** *** 984,990 **** if (hdelete.readyState == 4) { - clearTimeout(timer_in); xml = hdelete.responseXML; - document.getElementById('msg').innerHTML = ''; if (check_error(xml)) --- 1004,1008 ---- *************** *** 996,1003 **** else { ! document.getElementById('msg').appendChild(tn('<?php echo $user->lang['msg_del_done']; ?>')); } ! setTimeout("reload_post();",10000); ! last = 0;//Reset last, because if we delete the last message, the next messages cannot load correctly. } } --- 1014,1024 ---- else { ! message('<?php echo $user->lang['msg_del_done']; ?>'); } ! setTimeout("document.getElementById('msg_txt').innerHTML = ''",3000); ! ! last = 0;// Reset last, because if we delete the last message, the next messages cannot load correctly. ! clearTimeout(timer_in); ! reload_post(); } } *************** *** 1034,1038 **** dd.appendChild(button); dl.appendChild(dd); ! dd = ce('dd'); <?php } --- 1055,1061 ---- dd.appendChild(button); dl.appendChild(dd); ! dd = ce('dd'); ! ! dd.style.paddingLeft = '3px'; <?php } |