update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// global socketio
|
||||
$(document).ready(function(){
|
||||
ResizeTextArea();
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
@@ -23,6 +24,7 @@ frameSocket.on('notify', function(data){
|
||||
target: '_self'
|
||||
},{
|
||||
type: data['type'],
|
||||
z_index: 2000,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -317,5 +319,17 @@ $("body").on('click', '#command_modal_input_btn', function(e) {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$(window).resize(function() {
|
||||
ResizeTextArea();
|
||||
});
|
||||
|
||||
|
||||
function ResizeTextArea() {
|
||||
ClientHeight = window.innerHeight
|
||||
$("#command_modal").height(ClientHeight-100);
|
||||
$("#command_modal_textarea").height(ClientHeight-380);
|
||||
}
|
||||
|
||||
///////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user