Skip to content

Instantly share code, notes, and snippets.

@jmcarbo
Created January 22, 2009 12:12
Show Gist options
  • Save jmcarbo/50515 to your computer and use it in GitHub Desktop.
Save jmcarbo/50515 to your computer and use it in GitHub Desktop.
/* This is a template command */
CmdUtils.CreateCommand({
name: "publicprbb",
icon: "http://example.com/example.png",
homepage: "http://example.com/",
author: { name: "Your Name", email: "[email protected]"},
license: "GPL",
description: "Em mostra les reserves de sales",
help: "how to use your command",
takes: {"input": noun_arb_text},
preview: function( pblock, input ) {
var template = "Hello ${name}";
pblock.innerHTML = CmdUtils.renderTemplate(template, {"name": jQuery.Get("http://www.prbb.org") });
},
execute: function(input) {
Utils.openUrlInBrowser("http://portal.prbb.org/edifici/directori?keyword="+input.text)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment