Attached patch fixes the JS error when using jQuery 1.1.x +

CommentFileSizeAuthor
#13 diff.txt9.86 KBdakku
#11 smileys.zip1.52 KBVirr
#7 smileys.js_.txt3.25 KBVirr
ts_13.patch738 bytesm3avrck

Comments

Gurpartap Singh’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Actually, it should be

 -  $('#showSmileysWindow').oneclick(function() {
+  $('#showSmileysWindow').one('click', function() {

if you want to run the module with jQuery 1.1 and onwards.

However, this won't make into the module, because it'll break with default drupal 5 installation.

jmai’s picture

I tried both the proposed patches but it doesn't work. I'm using jQuery 1.2.6

michelle’s picture

Category: bug » support
Status: Closed (won't fix) » Active

Doesn't work for me on 1.2.6, either. At least not out of the smilies fieldset. If I click show all and use that icon box it works. Setting this back to active... I understand your won't fixing as far as the module goes but any chance of providing an updated patch? Unfortunately, I don't know js so no clue.

Thanks,

Michelle

Gurpartap Singh’s picture

You tried the fix in comment #1 right?

If that doesn't fix the problem, you may want to try out the js file from DRUPAL-6--1 branch.

michelle’s picture

Status: Active » Fixed

Yes, I did #1 and that didn't work. The file from the D6 branch did, though. Since you've already said you won't change it in the module (which makes sense) then confirming that works seems fixed enough to me.

Thanks,

Michelle

michelle’s picture

Title: fix to work with jQuery 1.1 » fix to work with jQuery 1.2.6
Status: Fixed » Active

Hmm... I just noticed that using the 6.x code fixed the fieldset but broke the "show all" link. Any suggestions to get them both working at the same time with 1.2.6?

Thanks,

Michelle

Virr’s picture

Version: 5.x-1.x-dev » 5.x-1.2-beta
Assigned: Unassigned » Virr
Status: Active » Fixed
StatusFileSize
new3.25 KB

My version of the script. Adding Smiley like works:)

Gurpartap Singh’s picture

Status: Fixed » Needs review
plan9’s picture

Thanks for the patch Virr. It works for me.
Only the 'more' link to the pop-up window is disabled by the patch - but for me it's not so important

Good work!

:o)

Virr’s picture

More link not important for me too :) yr welcome :)

Virr’s picture

StatusFileSize
new1.52 KB

new version with working "more" link

Gurpartap Singh’s picture

Can you tell exactly what was changed? A diff would be great!

dakku’s picture

StatusFileSize
new9.86 KB

D6 version of smileys.js didnt work for me. I am using D5 with JQuery 1.2.6, however the last patch by Virr worked a treat!
I have attached a diff file for your reference.

edit: erm hold that thought! it doesnt seem to insert any Smilies in the Node, only in the comments! I have tried the "more" link in nodes and no joy..

re-edit: fixed. sorry it was FCKEditor messing up smilies on Forum Nodes, read more here: http://janaksingh.com/blog/drupal-5-disable-fckeditor-content-type-79. I can confirm the last patch to be fully working in D5 with JQuery 1.2.6