Skip to content

Commit

Permalink
Merged changes again
Browse files Browse the repository at this point in the history
  • Loading branch information
satanas committed May 19, 2012
2 parents 643c2a5 + 474845f commit e56c8ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions turpial/data/layout/js/common.js
Expand Up @@ -2,10 +2,13 @@ var timeout = null;
var reset = null;

function exec_command(cmd) {
if (typeof fireToPython != 'undefined')
if (typeof fireToPython.send == 'function')
fireToPython.send(cmd)
window.location = cmd;
if (typeof fireToPython != 'undefined') {
if(typeof fireToPython.send == 'function') {
fireToPython.send(cmd)
}
} else {
window.location = cmd;
}
}

function show_notice(message, type) {
Expand Down

0 comments on commit e56c8ce

Please sign in to comment.