Browse Source

add node switch click event.

master
Savorboard 7 years ago
parent
commit
1d9a1763e3
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/DotNetCore.CAP/Dashboard/Content/js/cap.js

+ 10
- 1
src/DotNetCore.CAP/Dashboard/Content/js/cap.js View File

@@ -603,4 +603,13 @@ $(function () {
$("#collapseBtn").click(function () {
$('#jsonContent').JSONView('collapse');
});
})();

})();

function nodeSwitch(id) {
console.log("id:" + id);
var Days = 10;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = "cap.node=" + escape(id) + ";expires=" + exp.toGMTString();
}

Loading…
Cancel
Save