Content deleted Content added
→Updates: Ohconfucius: If you are referring to any of the functions which are used in the click events, you could trigger the click event of the link associated to the function (e.g. executing $( '#t-ISOdmy' ).click();), and jQuery would take care |
Ohconfucius (talk | contribs) |
||
Line 37:
:::{{U|Ohconfucius}}: If you are referring to any of the functions which are used in the click events, you could trigger the click event of the link associated to the function (e.g. executing <code>$( '#t-ISOdmy' )[http://api.jquery.com/click/#click .click()];</code>), and jQuery would take care of passing the event object as a parameter (which is used in the lines <code>e.preventDefault()</code>). But if these functions are also intended to be called without a click event, then it would need some change to avoid errors such as "ReferenceError: e is not defined".
:::BTW: I just noticed the script is creating duplicated ids in the page (there are 4 "t-expand", 2 "t-dmy", 2 "ca-unitfixer", etc), which is invalid in HTML. You should choose a unique id for each link. [[User:Helder.wiki|Helder]] 03:43, 13 August 2014 (UTC)
::::Noted. I never knew what those IDs' functions were, and the fact they were the same never caused any problems. Now renamed. --<small><span style="background-color:#ffffff;border: 1px solid;">[[User:Ohconfucius|'''<span style="color:#000000; background-color:#00FF00"> Ohc </span>''']]</span></small>[[User talk:Ohconfucius|<sup>''¡digame!''</sup>]] 03:52, 13 August 2014 (UTC)
|