Hi,

after upgrading my Durpal-Installation from 5.7 => 5.8 Smileys-Modul not working fine.

In example: I have Smiley-Module active for my Drupal-Default Forum: now the textaerea is very small an the the FCKeditor (from FCKeditor-Module) not started again. I disabled Smileys-Module - the forum works ok. Befor the Drupal 5.8 upgrade works Smiley fine.

Firefox-Firebug the following Error-Message returns:

$("#showSmileysWindow").oneclick is not a function
smileysAutoAttach()()smileys.js (Linie 12)
e()jquery.js (Linie 2)
e()jquery.js (Linie 2)
e()jquery.js (Linie 2)
e()jquery.js (Linie 2)
[Break on this error] $('#showSmileysWindow').oneclick(function() {

What goes there wrong?

Many Thanks.
Frank

Comments

Gurpartap Singh’s picture

Did you also upgrade to new jQuery version? Probably the cause, because jquery 1.1 onwards doesn't have .oneclick function. Please see another issue in the queue which addresses how to get JS code for new jQuery version.

frank.dev’s picture

I have allready installed version 1.1.2 of JQuery.

Gurpartap Singh’s picture

Then it wont work unless you update to new JS code for smileys module. Use the code from 6.x development release.

frank.dev’s picture

Ok, I replace the smileys.js from 5.x-1.2-beta, with smileys.js from 6.x-1.0-alpha1.

Firebug the following Error-Message returns:

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: drupal/sites/all/modules/smileys/smileys.js :: anonymous :: line 63" data: no]
initFocus()kframe.js (Linie 1)
initVirk()kframe.js (Linie 1)
kframe.js()()kframe.js (Linie 1)
[Break on this error] var ns4=(document.layers)?true:false;var...x';$O.style.width=w+'px';}}};initVirk();
kframe.js (Linie 1)

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: drupal/sites/all/modules/smileys/smileys.js :: anonymous :: line 63" data: no]
Gurpartap Singh’s picture

Category: bug » support
Priority: Critical » Normal

Replace

$('#showSmileysWindow').oneclick(function() {
    ....
  })

with

$('#showSmileysWindow').one('click', (function() {
    ....
  })
Gurpartap Singh’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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