Skip to content

Commit a6453e4

Browse files
committed
[Fix] Proxychain WebUI - Test and Save Buttons
Changes to be committed: modified: VERSION modified: src/www/httpd/htdocs/js/modules/proxy.js modified: src/www/httpd/htdocs/pages/proxy.html
1 parent 8203541 commit a6453e4

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0a
1+
0.4.0b

src/www/httpd/htdocs/js/modules/proxy.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ var APP = APP || {};
33
APP.proxy = (function($) {
44

55
function init() {
6-
registerEventHandler();
6+
registerEventHandlers();
77
updateProxyPage();
88
}
9-
10-
function registerEventHandler() {
11-
$(document).on("click", '#button-save-proxy', function(e) {
12-
saveAndTestProxy();
13-
});
14-
}
15-
16-
function saveAndTestProxy() {
9+
10+
function registerEventHandlers() {
11+
$(document).on("click", '#button-save-proxy', function(e) {
1712
saveProxy();
13+
});
14+
15+
$(document).on("click", '#button-test-proxy', function(e) {
1816
testProxy();
17+
});
1918
}
2019

2120
function saveProxy() {

src/www/httpd/htdocs/pages/proxy.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ <h4 class="no-margin">proxychains</h4>
6262
<!-- <div class="padded-right save-text" id="test0-proxy-status"></div>
6363
<div class="padded-right save-text" id="test1-proxy-status"></div>-->
6464
<div class="padded-right save-text" id="save-proxy-status"></div>
65-
<input class="button-primary" type="button" id="button-save-proxy" value="Save and Test Configuration"/>
65+
<input class="button-primary" type="button" id="button-save-proxy" value="Save Proxy Config"/>
66+
<input class="button-primary" type="button" id="button-test-proxy" value="Test Proxy Config"/>
6667
</div>
6768
</div>
6869
</div>

0 commit comments

Comments
 (0)