Thread:Penguin-Pal/@comment-4572079-20140212194210/@comment-4018164-20140213132020

Sorry about the page name problem first of all- in the save part i shouldn't have decoded the page name from the first place.

Anyway, here's the code (see more details below):

I've also fixed the problem when you are at the top of the page, and made it possible to use in the editor. However, i wasn't able to make it both draggable and usable. But here's the script that i tried for this, maybe someone can figure out what was wrong with it: /* draggable code */

$(document).on("mousemove", function(event) {	if ( ["to-do-editor-save","to-do-editor-textarea"].indexOf(document.activeElement.id) > -1 && // only selected wrapping nav $("nav#to-do-editor").hasClass("drag") // dragging enabled ) {		var dCurLeft = event.pageX,			dCurTop = event.pageY - pageYOffset,			dNavLeft = $('nav#to-do-editor').position.left,			dNavTop = $('nav#to-do-editor').position.top;		$("nav#to-do-editor").css({ "left": dCurLeft - (dCurLeft - dNavLeft), "top": dCurTop - (dCurTop - dNavTop) });	} }); $("nav#to-do-editor").mousedown(function {	if (["to-do-editor-save","to-do-editor-textarea"].indexOf(document.activeElement.id)) {		$(this).addClass("drag");	} }); $("nav#to-do-editor").mouseout(function {	$(this).removeClass("drag"); });

About using it in different wikis, the interface would only open if the sub page of yours in that wiki exists already. If what you're trying to switch between the subpages' names easily, you can use the code in your global JS page and toggle between chosen wikis ny replacing this wpart of hte code: With this (on this example, it switches between 3 wikis): However, if what you're trying to do is to create a single list accessible from all wikis, which can also be saved, i'm afraid that this is not possible to do with JavaScript by itself.