[00:03:36] brion: so I moved the user daily contribution aspect of click-tracking to its own tiny extension, so (hopefully) we can create that table and have it start recording right after the data dumps this week, then we can process and back-fill those dumps whenever [00:04:03] whee [16:59:28] Trevor has a new baby girl! [16:59:30] Aurora Bella - born at 9:46am, 9lbs 1oz [17:05:24] yay for trevor's baby =) [17:06:03] wooo [17:14:08] Congratulations! [18:26:47] nimish_g - there's no concept of "hooks" that one can register for in MediaWiki's Javascript, is there? [18:27:18] (That's the one thing I don't like about IRC - everyone can see stupid questions in public. :) ) [18:27:59] No, not really, but there's certain events that might be useful [18:28:06] What are you trying to accomplish? [18:29:48] I'm thinking about how best to implement forms in MediaWiki - each template call would have its own pop-up Javascript form. [18:30:35] Template call in which context? Page view or edit? [18:30:40] So, potentially, some extensions might want to extend forms functionality - adding a map-based input for coordinates, for instance. [18:30:49] In the edit tab. [18:31:35] My question is whether it's better to do such extending using hooks in PHP, or Javascript. [18:32:53] So there's a form being output by PHP that you wanna customize [18:33:04] Or make customizable, really [18:33:33] Yeah, although it might be coded entirely in Javascript. [18:34:27] are you debating whether to have the server do all the processing to render the form in PHP and then pass it to the client or have all the rendering code in JS? [18:34:40] Wait, what, the form is coded in entirely in JS? [18:35:00] nimish_g: As I understand it he's debating where to put the extension hooks (PHP or JS) [18:35:22] Yaron_: Generally, I'd prefer putting hooks on the PHP side, as you can always use those to add JS anyway [18:35:51] Yeah, that was my thought too. [18:36:10] I was somewhat curious about whether hooks were even possible in JS. [18:37:19] RoanKattouw: if I remember right, weren't you, michael and trevor talking about something hook-like in the JS side? so that we could have functions that execute on toolbar.ready, or some equivalent? [18:37:57] nimish_g: Yes, but that's A) hackish and B) not relevant if you're not doing toolbar-related stuff [18:38:46] Got it. [18:39:09] Yaron_: Hooks are definitely possible in JS, they're just called differently (events) [18:39:58] Oh.