Skip to content

Commit c0003b6

Browse files
author
mydicebot
committed
20190326
1 parent 329e37e commit c0003b6

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed
28.5 KB
Loading

src/views/info.pug

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ block content
568568
header: "CODE",
569569
body: {
570570
id: "script_bet_coding_board",
571-
view: "textarea",
571+
view: "codemirror-editor",
572+
mode: "lua",
572573
}
573574
},
574575
{
@@ -878,14 +879,6 @@ block content
878879
let layout = $$("mobile_toolbar").getParentView();
879880
layout.show();
880881
});
881-
$$("script_bet_coding_board").attachEvent("onFocus", function(current_view, prev_view){
882-
let layout = $$("mobile_toolbar").getParentView();
883-
layout.hide();
884-
});
885-
$$("script_bet_coding_board").attachEvent("onBlur", function(current_view, prev_view){
886-
let layout = $$("mobile_toolbar").getParentView();
887-
layout.show();
888-
});
889882

890883
$$("mobile_toolbar_total").attachEvent("onItemClick", function(){
891884
$$("bet_total_stats").show();
@@ -1603,4 +1596,16 @@ block content
16031596
orig.apply(console, arguments);
16041597
}
16051598
})();
1599+
function focusFunction() {
1600+
if(webix.env.mobile) {
1601+
let layout = $$("mobile_toolbar").getParentView();
1602+
layout.hide();
1603+
}
1604+
}
1605+
function onblurFunction() {
1606+
if(webix.env.mobile) {
1607+
let layout = $$("mobile_toolbar").getParentView();
1608+
layout.show();
1609+
}
1610+
}
16061611
script(src=site)

0 commit comments

Comments
 (0)