|
@@ -310,24 +310,26 @@
|
|
|
})
|
|
|
);
|
|
|
|
|
|
- window.socketClient.subscribe("/user/topic/newMcpRequest", function(message) {
|
|
|
- console.log("Received new mcp request: ", message);
|
|
|
- //TODO: Update the mcp queue on the DOM
|
|
|
- }); // once in 15 seconds
|
|
|
-
|
|
|
- window.socketClient.subscribe("/user/topic/removeMcpRequest", function(message) {
|
|
|
- console.log("An mcp request has been removed: ", message);
|
|
|
- //TODO: Update the mcp queue on the DOM
|
|
|
- });
|
|
|
-
|
|
|
window.socketClient.subscribe("/user/topic/myCurrentProClientWork", function(message) {
|
|
|
console.log("You have a client pro work: ", message);
|
|
|
$.get('/current-work', function(_data) {
|
|
|
$('.current-work').html(_data);
|
|
|
- initFastLoad($('.current-work'));
|
|
|
+ //initFastLoad($('.current-work'));
|
|
|
+ fastReload();
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ window.socketClient.subscribe("/user/topic/killMyCurrentProClientWork", function(message) {
|
|
|
+ console.log("You have killed your current pro client work: ", message);
|
|
|
+ $.get('/current-work', function(_data) {
|
|
|
+ $('.current-work').html(_data);
|
|
|
+ //initFastLoad($('.current-work'));
|
|
|
+ fastReload();
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|