Created
September 3, 2008 16:25
-
-
Save snaka/8618 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ubiquity command (in progress) : add item to check*pad | |
/* | |
To do : Accept to japanese | |
*/ | |
CmdUtils.CreateCommand({ | |
name: "check-pad", | |
description: "check*pad", | |
help: "simple todo list", | |
icon: "http://www.checkpad.jp/favicon.ico", | |
takes: {parameter: noun_arb_text}, | |
preview: function(pblock, directObject) { | |
pblock.innerHTML = "Add to-do item : " + directObject.text; | |
}, | |
execute: function(directObject) { | |
displayMessage(directObject.text); | |
jQuery.post( | |
'http://www.checkpad.jp/?mode=ms&act=add&pjt_id=xxxxxx', /* YOU MUST CHANGE pjt_id */ | |
{ttl: directObject.text}, | |
function(data, textStatus) { | |
displayMessage(textStatus); | |
} | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment