[Update] 用户资产页面链接是 新窗口打开

pull/3284/head
ibuler 2019-09-25 18:08:58 +08:00
parent 3c12c33911
commit 78aba7ae87
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ function initTable() {
$(td).html(hostname); $(td).html(hostname);
}}, }},
{targets: 5, createdCell: function (td, cellData, rowData) { {targets: 5, createdCell: function (td, cellData, rowData) {
var conn_btn = '<a href="{% url "luna-view" %}?type=remote_app&login_to=' + cellData +'" class="btn btn-xs btn-primary">{% trans "Connect" %}</a>'.replace("{{ DEFAULT_PK }}", cellData); var conn_btn = '<a href="{% url "luna-view" %}?type=remote_app&login_to=' + cellData +'" class="btn btn-xs btn-primary" target="_blank">{% trans "Connect" %}</a>'.replace("{{ DEFAULT_PK }}", cellData);
$(td).html(conn_btn) $(td).html(conn_btn)
}} }}
], ],

View File

@ -29,7 +29,7 @@ var showAssetHref = false; // Need input default true
var actions = { var actions = {
targets: 4, createdCell: function (td, cellData) { targets: 4, createdCell: function (td, cellData) {
var conn_btn = '<a href="{% url "luna-view" %}?login_to=' + cellData + var conn_btn = '<a href="{% url "luna-view" %}?login_to=' + cellData +
'" class="btn btn-xs btn-primary">{% trans "Connect" %}</a>'; '" class="btn btn-xs btn-primary" target="_blank">{% trans "Connect" %}</a>';
$(td).html(conn_btn) $(td).html(conn_btn)
}}; }};
$(document).ready(function () { $(document).ready(function () {
@ -85,4 +85,4 @@ function toggle() {
} }
</script> </script>
{% endblock %} {% endblock %}