[06:34:21] hi [06:38:18] * ankry is looking for a way to activate sortability of class="wikitable sortable" table added to the pege on user's side using js [06:38:38] they use this code: [06:38:38] https://wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript [06:39:43] does this help you, or you're still looking for additional information? [06:40:50] any hints? [06:41:58] it's attached to the 'sortable' class, which is missing in the js script you linked [06:50:56] Sveta: and how to activate it on an external page code, loded via UTL? [06:51:00] *URL [06:51:13] you mean activate this code off-wiki? [06:51:20] no, on wiki [06:51:33] one page loads code of another page [06:52:29] to transclude it client side [06:53:07] server-side transclusion is imposible (because of limits) [06:53:32] i'd be glad to tell you after https://en.wikipedia.org/wiki/User:Gryllida/sandbox?debug=true shows sorting correctly [06:53:39] oh wait it does, hold on [06:54:07] https://en.wikipedia.org/w/resources/src/jquery.tablesorter/jquery.tablesorter.js?cc500 [06:54:22] ankry, is that it? [06:57:05] maybe [06:57:25] so this has to be called on each table after transclusion [06:57:58] I'll try [13:23:54] [[Tech]]; Anomie; /* Parser functions to move numbers */ re; https://meta.wikimedia.org/w/index.php?diff=19055861&oldid=19053899&rcid=13515502 [14:35:14] Can anyone say why https://en.wikipedia.org/wiki/User:RhinosF1/common.js doesn't hide the edit button? [14:37:55] RhinosF1: It's hidden for me [14:38:14] xSavitar, What page did you test on? [14:38:21] Or are my missing something? Can you clear cache? [14:39:06] RhinosF1: I just visited the page and oh, it seems it's permission issues from my end. I can only view the page but can't edit it [14:39:14] So it's a different question you're asking [14:39:19] My bad [14:39:48] xSavitar, yeah, that should remove the edit button from the bar at the top of most pages [14:41:11] I'm aware that common.js is per account so I'm wondering how I can test that [14:41:38] without copying that code over to my own space [14:42:02] xSavitar, You could use importScript or mw.loader.load() [14:54:29] RhinosF1: you messed up the paren nesting [14:54:59] McJill, how? (note: I didn't write it) [14:55:19] should be includes(mw.config.get( 'wgNamespaceNumber' )) === true [14:55:32] that is, includes() === true not includes(===true) [14:59:32] McJill, still no better, Feel free to do it. Do you need an on-wiki request? [15:02:26] RhinosF1: you can’t just add a parenthesis willy nilly, they need to be balanced. You added a ) rather than move it [15:03:04] Anyway, if you want more help, you can pm me, no need to clog this chan