ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: inter on January 07, 2016, 12:01:34 pm

Title: js error
Post by: inter on January 07, 2016, 12:01:34 pm
version elkarte: 1.0.6

Code: [Select]
(function($){
    $(document).ready(function(){
        $('.myform select').on("click", function(e){
            // ... my code
        }
    });
})(jQuery);

Quote
time: 07.01.2016 12:52:34
error: TypeError: o is undefined
file: http://localhost/elk105/themes/default/scripts/elk_jquery_plugins.js
line: 574


Title: Re: js error
Post by: emanuele on January 07, 2016, 12:20:42 pm
I edited the message to remove the spoiler tags. One click less to see the errors. :P

I'm not sure what the code is, I guess some code you are using, but the error seems related to Superclick:
https://github.com/elkarte/Elkarte/blob/master/themes/default/scripts/elk_jquery_plugins.js#L574

I suppose we can see if there is a more recent version of SC available?
@Spuds do you know from where did we grab the one we are shipping?
Title: Re: js error
Post by: Spuds on January 07, 2016, 02:32:59 pm
I think that is the latest version (1.0.0), there has not been an update that I know of.  It in the Joels github space along with superfish.

I'm not sure why superclick is being called.  It would appear that it is being bound to  .myform, select from somewhat but is not initiated properly.   @inter do you know if you are using .superclick (click to open menus) and if so was the line in theme.js altered at all?
Title: Re: js error
Post by: inter on January 07, 2016, 02:41:05 pm
my full code
Spoiler (click to show/hide)
Title: Re: js error
Post by: Joshua Dickerson on January 07, 2016, 07:32:38 pm
Why are you putting code in spoiler tags? We're used to big messages with lots of code. We even like it ;)
Title: Re: js error
Post by: inter on January 07, 2016, 08:15:42 pm
Big height my message. I like spoiler tag  :D
Title: Re: js error
Post by: inter on January 09, 2016, 09:32:39 am
solved:
I have been on top of the button with the class:

Code: [Select]
    <ul class="sf-js-enabled sf-arrows">
    <li class="listlevel1">

i replace:
Code: [Select]
    <ul>
    <li class="listlevel1">