Subversion Repositories SmartDukaan

Rev

Rev 32336 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32336 jai.hind 1
$(function() {
2
	$(document).on('click', ".restart-server-page", function() {
3
		loadRestartServer("main-content");
4
	});
32337 jai.hind 5
 
32336 jai.hind 6
	$(document).on('click', ".restartServerBtn", function() {
7
		doGetAjaxRequestHandler(context + "/restartServer",
8
        			function(response) {
9
        			if(response == 'true'){
10
        			alert("Server Restarted Successfully");
11
        			}
12
        			});
13
	});
32337 jai.hind 14
 
15
		$(document).on('click', ".rebootServerBtn", function() {
16
    		doGetAjaxRequestHandler(context + "/rebootServer",
17
            			function(response) {
18
            			if(response == 'true'){
19
            			alert("Server Reboot Successfully");
20
            			}
21
            			});
22
    	});
32336 jai.hind 23
});
24
function loadRestartServer(domId){
25
	doGetAjaxRequestHandler(context + "/getRestartServer",
26
			function(response) {
27
				$('#' + domId).html(response);
28
			});
32337 jai.hind 29
}