Skip to main content
Topic: js error (Read 1962 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

js error

version elkarte: 1.0.6

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

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


Last Edit: January 07, 2016, 08:29:13 am by inter
Sorry for my English

Re: js error

Reply #1

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?
Bugs creator.
Features destroyer.
Template killer.

Re: js error

Reply #2

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?

 

Re: js error

Reply #3

my full code
Spoiler (click to show/hide)
Last Edit: January 07, 2016, 12:56:55 pm by inter
Sorry for my English

Re: js error

Reply #4

Why are you putting code in spoiler tags? We're used to big messages with lots of code. We even like it ;)

Re: js error

Reply #5

Big height my message. I like spoiler tag  :D
Sorry for my English

Re: js error

Reply #6

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">
Sorry for my English