jive-sdk
Version:
Node.js SDK for Jive Software to assist with the development of add-ons
19 lines (13 loc) • 413 B
JavaScript
function ViewManager() {
return {
showView:function (view) {
if (!this.currentView || view != this.currentView) {
if (this.currentView)
this.currentView.close();
this.currentView = view;
// console.log("view", view.el );
$("#main-content").html(this.currentView.el);
}
}
};
}