My web browser is freezing when posting any text in tribune block (Chrome2/Firefox3).
Any clue?

Comments

kenorb’s picture

Looped in while() in Javascript code:

 if (json.posts[i].id >= first_id) {
220 while (Drupal.tribune.tribunes[tribune_id].pinnipede.find('li').length >= Drupal.settings.tribune.tribunes[tribune_id].history_size) {
221 if (Drupal.settings.tribune.tribunes[tribune_id].message_order == "top_to_bottom") {
222 var first = Drupal.tribune.tribunes[tribune_id].pinnipede.find('li:first'); // <!-- code in this condition is each time executed
223 } else {
224 var first = Drupal.tribune.tribunes[tribune_id].pinnipede.find('li:last');
225 }
226 first.each(function () { // <!-- it's not entering the function
227 var id_array = $(this).attr("id").split("-");
228 if (id_array.length == 2) {
229 delete Drupal.tribune.tribunes[tribune_id].postElements[id_array[1]];
230 }
231 $(this).remove();
232 });
233 }
first_id =  0
json.posts[0].id = 260
Drupal.tribune.tribunes[tribune_id].pinnipede.find('li').length = 0
Drupal.settings.tribune.tribunes[tribune_id].history_size = ""
tribune_id = "tribune-block-3388"
Drupal.tribune.tribunes[tribune_id].pinnipede[0] = <ul id="ul-tribune-block-3388" class="tribune-posts tribune-block">
first object is always empty
kenorb’s picture

Before the upgrade it was working fine.
If it can't be fixed, it's possible to backport tribune?

SeeSchloss’s picture

So the real problem was that there was no validation on the edit form, so you could have a history_size of "" which doesn't mean much. It is fixed in CVS and in the next release

SeeSchloss’s picture

Assigned: Unassigned » SeeSchloss
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.