Server sync
This commit is contained in:
@@ -192,6 +192,17 @@ function CATC(asGlobals)
|
||||
$Modal.find('.body-title').text(sTitle);
|
||||
});
|
||||
|
||||
//Sync
|
||||
self.elem.$Menu.find('.sync').click(function(){
|
||||
Tools.ajax(
|
||||
'server_push',
|
||||
()=>{self.feedback('success', 'Successful Sync');},
|
||||
{},
|
||||
()=>{self.feedback('error', 'Sync failed');},
|
||||
$(this).find('i')
|
||||
);
|
||||
});
|
||||
|
||||
//Home
|
||||
self.elem.$Menu.find('.home').click(function(){self.setHash(self.consts.default_page);});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user