2016-07-04 15:51:31 -07:00
|
|
|
DDH.js_minify = DDH.js_minify || {};
|
|
|
|
|
2016-07-05 15:41:51 -07:00
|
|
|
"use strict";
|
2016-07-04 15:51:31 -07:00
|
|
|
|
2016-07-05 15:41:51 -07:00
|
|
|
DDH.js_minify.build = function(ops) {
|
2016-07-04 15:51:31 -07:00
|
|
|
|
2016-07-05 15:41:51 -07:00
|
|
|
var shown = false;
|
2016-07-04 16:29:18 -07:00
|
|
|
|
2016-07-05 15:41:51 -07:00
|
|
|
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)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// set the flag to true so it doesn't get run again
|
|
|
|
shown = true;
|
|
|
|
|
|
|
|
var $dom = $('#zci-js_minify'),
|
|
|
|
$main = $dom.find('.zci__main');
|
|
|
|
|
|
|
|
$main.toggleClass('c-base');
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|