Hi,
I've noticed the Shout box in my website doing some funky behaviour, I'm not sure if its by design or not, but it's sort of annoying.
Basically, everytime I post a shout, the input button labeled "Shout" vanishes, you can still enter shouts as the text field is still visible, but you have to hit enter rather than click the input button.
Through firebug, I found that the input element was still there, but had an inline style applied to it as display: none;
Assuming that this inline style was applied via Javascript, I took a look at the shoutbox.js file and saw at the bottom this peice of code.
Line 189- // Clear the form input
Line 190- $('#shoutbox-add-form').resetForm();
Line 191- $('#shoutbox-throbber').show();
Line 192- $('#shoutbox-add-form input#edit-submit').hide();
Line 193- return true;
};
Line 192 is what I beleive may be causing the problem?
Also,
Everytime I submit a shout, I receive a javascript error relating to the jQuery library that is visible through the firebug & mozilla console:
Error: object is undefined
Source File: https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js
Line: 605 ( length = object.length, )
Thanks for your help.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Input-button-missing-1298960-9.patch | 443 bytes | ichionid |
| #4 | Input-button-missing-1298960-4.patch | 1.13 KB | borgewarvik |
Comments
Comment #1
adamgerthel commentedI have the same problem using Alpha 2. Fresh install using Seven theme
Comment #2
micromu commentedI have the same problem. No solution ?
Comment #3
disterics commentedComment #4
borgewarvik commentedI've made a patch for this.
It fixes three problems.
Comment #5
plazik commentedI have the same problem.
#4 doesn't work for me because this patch have been already in the module.
I commented #192 line in
shoutbox-form.jsand it works for me fine but firebug console still have errors.Comment #6
perohu commentedIs there a solution for this problem?
Commenting #192 line out is not the solution, because it breaks other funtionality (e.g. editing/unpublishing shouts and too long shout notification)
Thx
Comment #7
perohu commentedI realized that the problem is the patch mentionod at #4 post (it is already in 1.0alpha2)
It's very strange, that the desciption of the patch and what the patch is really doing is completly different.
If I roll back from the mentioned patch, there are no more javascipt errors and everyting is working fine, except one thing: Nothing happens, if the shout is longer then its maximum allowed lenght.
Comment #8
Bergzilla commentedJust installed shoutbox and had same problem, ofc i was lazy enough to look for a fix here, but seems I have to do everything myself ;)
So heres the fix, go to shoutbox-form.js and find line 192.
change
$('#shoutbox-add-form input#edit-submit').hide();
to
$('#shoutbox-add-form input#edit-submit').show();
And viola...
Comment #9
ichionid commentedPatch for fix suggested from #8.
Comment #9.0
ichionid commentedremoved the bold tags from code block, as they didn't bold the line obviously :P
Comment #10
vitalblue commentedFixed in latest version