mirror of https://github.com/jumpserver/jumpserver
commit
cedf0e4532
|
@ -137,7 +137,6 @@ $(document).ready(function () {
|
||||||
protocolRef.val(protocolShould);
|
protocolRef.val(protocolShould);
|
||||||
protocolRef.trigger("change")
|
protocolRef.trigger("change")
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.on("click", ".btn-protocol.btn-del", function () {
|
.on("click", ".btn-protocol.btn-del", function () {
|
||||||
$(this).parent().parent().remove();
|
$(this).parent().parent().remove();
|
||||||
|
|
|
@ -1111,7 +1111,8 @@ function objectAttrsIsBool(obj, attrs) {
|
||||||
|
|
||||||
function formatDateAsCN(d) {
|
function formatDateAsCN(d) {
|
||||||
var date = new Date(d);
|
var date = new Date(d);
|
||||||
return date.toISOString().replace("T", " ").replace(/\..*/, "");
|
var date_s = date.toLocaleString(navigator.language, {hour12: false});
|
||||||
|
return date_s.split("/").join('-')
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUrlParams(url) {
|
function getUrlParams(url) {
|
||||||
|
|
Loading…
Reference in New Issue