kopia lustrzana https://github.com/c9/core
Move console events to xml
rodzic
d7a8ea3543
commit
c5185ca58d
|
@ -158,17 +158,6 @@ define(function(require, module, exports) {
|
|||
emit("resize");
|
||||
});
|
||||
|
||||
plugin.getElement("btnClose").onclick = function(){
|
||||
hide();
|
||||
this.blur();
|
||||
};
|
||||
plugin.getElement("btnConsoleMax").onclick = function(){
|
||||
if (this.value)
|
||||
maximizeConsoleHeight();
|
||||
else
|
||||
restoreConsoleHeight();
|
||||
};
|
||||
|
||||
// Create new tabs
|
||||
var state = settings.getJson("state/console");
|
||||
if (!state) {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
<a:application xmlns:a="http://ajax.org/2005/aml">
|
||||
<a:hbox id="consoleButtons" pack="end" top="0" right="3" height="24" align="center" padding="0" zindex="1000">
|
||||
<a:button id="btnConsoleMax" skin="btn_console" class="maximize" state="true" margin="2 2 0 0" />
|
||||
<a:button id="btnConsoleMax" skin="btn_console" class="maximize" command="maximizeconsole" state="true" margin="2 2 0 0" />
|
||||
<a:divider skin="divider_console" margin="3 0 0 3"></a:divider>
|
||||
<a:button
|
||||
id="btnClose"
|
||||
skin="btn_icon_only"
|
||||
class="dim22-22 console_close_btn btn_icon_onlyIcon"
|
||||
command="toggleconsole"
|
||||
margin="1 0 0 1" />
|
||||
</a:hbox>
|
||||
</a:application>
|
Ładowanie…
Reference in New Issue