fix to work with jQuery 1.2.6

m3avrck - July 11, 2007 - 05:07
Project:Smileys
Version:5.x-1.2-beta
Component:Code
Category:support request
Priority:normal
Assigned:Virr
Status:needs review
Description

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

AttachmentSize
ts_13.patch738 bytes

#1

Gurpartap Singh - June 10, 2008 - 17:50
Status:reviewed & tested by the community» won't fix

Actually, it should be

<?php
-  $('#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.

#2

jmai - June 11, 2008 - 07:23

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

#3

Michelle - August 25, 2008 - 16:33
Category:bug report» support request
Status: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

#4

Gurpartap Singh - August 25, 2008 - 17:12

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.

#5

Michelle - August 25, 2008 - 19:03
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

#6

Michelle - August 25, 2008 - 22:45
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

#7

Virr - January 7, 2009 - 11:03
Version:5.x-1.x-dev» 5.x-1.2-beta
Assigned to:Anonymous» Virr
Status:active» fixed

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

AttachmentSize
smileys.js_.txt 3.25 KB

#8

Gurpartap Singh - January 7, 2009 - 14:05
Status:fixed» needs review

#9

plan9 - February 20, 2009 - 15:29

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)

#10

Virr - March 12, 2009 - 11:42

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

#11

Virr - March 14, 2009 - 01:37

new version with working "more" link

AttachmentSize
smileys.zip 1.52 KB

#12

Gurpartap Singh - June 27, 2009 - 17:18

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

#13

dakku - November 11, 2009 - 13:03

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

AttachmentSize
diff.txt 9.86 KB
 
 

Drupal is a registered trademark of Dries Buytaert.