Skip to content

Commit

Permalink
tag button close buttons as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Aug 10, 2015
1 parent 41f13bb commit 051aff7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/script/ui-control/interpreter-input-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,16 @@ define(["./interpreter-uistate",
var lHeight = window.__color_panel.style.height.toString();
if ( lHeight === '0px' || lHeight === ""){
window.__color_panel.style.height = '250px';
gaga.g('send', 'event', 'more_color_schemes.open', 'button');
} else {
window.__color_panel.style.height = '0';
_closeColorPanel();
gaga.g('send', 'event', 'more_color_schemes.close', 'button');
}
gaga.g('send', 'event', 'more_color_schemes', 'button');
},
closeColorPanel: _closeColorPanel
closeColorPanel: function(){
_closeColorPanel();
gaga.g('send', 'event', 'color.close', 'button');
}
};
});
/*
Expand Down
13 changes: 10 additions & 3 deletions src/script/ui-control/interpreter-output-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ define(["./interpreter-uistate",
dq,
gaga) {
"use strict";

function _closeExportPanel(){
window.__output_panel.style.height = '0';
}

return {
svgOnDblClick: function() {
window.open(xport.toVectorURI(dq.webkitNamespaceBugWorkaround(window.__svg.innerHTML)));
Expand Down Expand Up @@ -69,13 +74,15 @@ define(["./interpreter-uistate",
var lHeight = window.__output_panel.style.height.toString();
if ( lHeight === '0px' || lHeight === ""){
window.__output_panel.style.height = '250px';
gaga.g('send', 'event', 'export.open', 'button');
} else {
window.__output_panel.style.height = '0';
_closeExportPanel();
gaga.g('send', 'event', 'export.close', 'button');
}
gaga.g('send', 'event', 'more_export_options', 'button');
},
closeExportOptions: function(){
window.__output_panel.style.height = '0';
_closeExportPanel();
gaga.g('send', 'event', 'exportPanel.close', 'button');
}
};
});
Expand Down

0 comments on commit 051aff7

Please sign in to comment.