jive-sdk
Version:
Node.js SDK for Jive Software to assist with the development of add-ons
25 lines (18 loc) • 585 B
JavaScript
(function() {
jive.tile.onOpen(function(config, options ) {
gadgets.window.adjustHeight();
if ( typeof config === "string" ) {
config = JSON.parse(config);
}
var json = config || {
"set_level": "1"
};
// prepopulate the sequence input dialog
$("#set_level").val( json["set_level"]);
$("#btn_submit").click( function() {
config["level"] = $("#set_level").val();
jive.tile.close(config, {} );
gadgets.window.adjustHeight(300);
});
});
})();