removed resing event from jquery-terminal

This commit is contained in:
coderaiser 2012-10-04 09:20:07 -04:00
parent da02446d3f
commit 32c0312c7e
5 changed files with 19 additions and 12 deletions

View file

@ -20,6 +20,8 @@ started.
* Added more demo mirrors to readme (appfog, cloudfoundry).
* Removed resing event from jquery-terminal.
2012.10.01, Version 0.1.7

View file

@ -26,7 +26,6 @@ we moves to *limited mode*.
Limited-mode features
---------------
- only 1 panel available
- no keybinding
- no local caching
- full loading of all web page(with styles, js-scripts, html-page etc).

View file

@ -28,21 +28,25 @@ var CloudCommander, $;
Util.jsload('lib/client/socket.js');
var lLoadTerm_func = function(){
var lLoadTerm_func = function(){
Util.jsload('lib/client/terminal/jquery-terminal/jquery.terminal.js',
function(){
init();
$(function($, undefined) {
Term = JqueryTerminal.Term = $('#terminal').terminal(function(command, term){
Term = JqueryTerminal.Term = $('#terminal').terminal(function(command, term){
term.echo('');
cloudcmd.Socket.send(command);
}, {
greetings : 'Javascript Interpreter',
prompt : 'cloudcmd> '
greetings : '[[;#729FCF;]Cloud Commander Terminal]',
prompt : '[[;#729FCF;]cloudcmd> ]',
color : '#729FCF;'
});
});
/* removing resize function, no need for us */
Term.resize = function(){};
$(window).unbind('resize');
JqueryTerminal.show();
});
};

View file

@ -26,7 +26,10 @@
font-family: FreeMono, monospace;
color: #aaa;
background-color: #000;
line-height: 14px;
line-height: 16px;
/* removing breaking the lines */
white-space: nowrap;
overflow:hidden;
}
.terminal .cmd span {
float: left;

View file

@ -1656,9 +1656,7 @@ function get_stack(caller) {
div = $('<div/>').html(encodeHTML(string));
}
output.append(div);
/*
div.width('100%');
*/
div.width('100%');
scroll_to_bottom();
return div;
}
@ -1853,7 +1851,7 @@ function get_stack(caller) {
}).get().join('\n');
}
},
resize: function(width, height) {
resize: function(width, height) {
if (width && height) {
self.width(width);
self.height(height);
@ -2363,6 +2361,7 @@ function get_stack(caller) {
} else {
self.disable();
}
$(window).resize(self.resize);
self.click(function() {
self.focus();