diff --git a/ajax.php b/ajax.php index 276c180..41faa7e 100644 --- a/ajax.php +++ b/ajax.php @@ -22,9 +22,9 @@ if (!empty($_POST['action'])) { echo ansi2html($session->exec('cd ' . $config['path'] . ' && ' . $gitstatus)); } else if ($_POST['action'] == 'push') { $message = empty($_POST['message']) ? 'FTP' : $_POST['message']; - //echo $session->exec('cd ' . $config['path'] . ' && git add -A && git commit -m "' . $message . '" && git push && ' . $gitstatus); + echo ansi2html($session->exec('cd ' . $config['path'] . ' && git add -A && git commit -m "' . $message . '" && git push && ' . $gitstatus)); } else if ($_POST['action'] == 'pull') { - //echo $session->exec('cd ' . $config['path'] . ' && git pull && ' . $gitstatus); + echo ansi2html($session->exec('cd ' . $config['path'] . ' && git pull && ' . $gitstatus)); } } } diff --git a/index.php b/index.php index 3e70e81..d752d99 100644 --- a/index.php +++ b/index.php @@ -35,10 +35,16 @@ global $servers;

- - + +
- +
diff --git a/js/app.js b/js/app.js index bda7241..209045c 100644 --- a/js/app.js +++ b/js/app.js @@ -36,8 +36,3 @@ function callRequest(action, section, message) { } }; } - -function push(section) { - //callRequest('push', section, document.getElementById('message').value); - return false; -}