JsMinify: Add basic event listeners

master
sdua 2016-07-05 23:10:53 +00:00
parent a76abb9bad
commit 8a7e701fb9
1 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,6 @@ DDH.js_minify.build = function(ops) {
return {
onShow: function() {
console.log("onShow called");
// make sure this function is run only once, the first time
// the IA is shown otherwise things will get initialized more than once
if (shown)
@ -17,11 +16,20 @@ DDH.js_minify.build = function(ops) {
// set the flag to true so it doesn't get run again
shown = true;
$.getScript('')
var $dom = $('#zci-js_minify'),
$main = $dom.find('.zci__main');
$main = $dom.find('.zci__main'),
$minifyButton = $dom.find('.js_minify__action');
$main.toggleClass('c-base');
var minifyCode = function() {
console.log("Call for minifyCode");
};
$minifyButton.click(minifyCode);
}
};
};