Show More
@@ -40,19 +40,14 define([ | |||||
40 | }; |
|
40 | }; | |
41 |
|
41 | |||
42 | TerminalList.prototype.new_terminal = function () { |
|
42 | TerminalList.prototype.new_terminal = function () { | |
|
43 | var w = window.open(); | |||
|
44 | var base_url = this.base_url; | |||
43 | var settings = { |
|
45 | var settings = { | |
44 | type : "POST", |
|
46 | type : "POST", | |
45 |
|
|
47 | dataType: "json", | |
46 | async : false, |
|
|||
47 | success : function (data, status, xhr) { |
|
48 | success : function (data, status, xhr) { | |
48 | var name = data.name; |
|
49 | var name = data.name; | |
49 | window.open( |
|
50 | w.location = utils.url_join_encode(base_url, 'terminals', name); | |
50 | utils.url_join_encode( |
|
|||
51 | this.base_url, |
|
|||
52 | 'terminals', |
|
|||
53 | name), |
|
|||
54 | '_blank' |
|
|||
55 | ); |
|
|||
56 | }, |
|
51 | }, | |
57 | error : utils.log_ajax_error, |
|
52 | error : utils.log_ajax_error, | |
58 | }; |
|
53 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now