jam-cloud/web/app/assets/javascripts/dialog/jamtrackLicenseDialog.js

46 lines
856 B
JavaScript

(function(context,$) {
"use strict";
context.JK = context.JK || {};
context.JK.JamtrackLicenseDialog = function(app) {
var logger = context.JK.logger;
var $dialog = null;
var dialogId = 'jamtrack-license-dialog';
function beforeShow(data) {
}
function afterShow(data) {
}
function afterHide() {
}
function showDialog() {
return app.layout.showDialog(dialogId);
}
function events() {
}
function initialize() {
var dialogBindings = {
'beforeShow' : beforeShow,
'afterShow' : afterShow,
'afterHide': afterHide
};
app.bindDialog(dialogId, dialogBindings);
$dialog = $('[layout-id="' + dialogId + '"]');
events();
}
this.initialize = initialize;
this.showDialog = showDialog;
};
return this;
})(window,jQuery);