Stackedit/public/res/extensions/dialogAbout.js

32 lines
649 B
JavaScript
Raw Normal View History

2013-06-10 21:22:32 +00:00
define([
2014-08-10 23:42:40 +00:00
"jquery",
"underscore",
"constants",
"utils",
"classes/Extension",
"monetizejs",
"text!html/dialogAbout.html"
], function($, _, constants, utils, Extension, MonetizeJS, dialogAboutHTML) {
2013-06-10 21:22:32 +00:00
2014-08-10 23:42:40 +00:00
var dialogAbout = new Extension("dialogAbout", 'Dialog "About"');
2013-06-10 21:22:32 +00:00
2014-08-10 23:42:40 +00:00
var monetize = new MonetizeJS({
applicationID: 'iklMbzDI7dvMEScb'
});
2013-06-10 21:22:32 +00:00
2014-08-10 23:42:40 +00:00
dialogAbout.onReady = function() {
utils.addModal('modal-about', _.template(dialogAboutHTML, {
version: constants.VERSION
}));
$('.modal-about .sponsorship-button').click(function() {
monetize.getPayments({
summary: true
}, function() {
});
});
};
2013-08-04 17:42:22 +00:00
2014-08-10 23:42:40 +00:00
return dialogAbout;
2013-06-10 21:22:32 +00:00
});