Revision 1c922789 ui/static/snf/js/models.js
b/ui/static/snf/js/models.js | ||
---|---|---|
953 | 953 |
|
954 | 954 |
get_action_url: function(name) { |
955 | 955 |
return this.url() + "/action"; |
956 |
}, |
|
957 |
|
|
958 |
get_connection_info: function(host_os, success, error) { |
|
959 |
var url = "/machines/connect"; |
|
960 |
params = { |
|
961 |
ip_address: this.get_addresses().ip4, |
|
962 |
os: this.get_os(), |
|
963 |
host_os: host_os, |
|
964 |
srv: this.id |
|
965 |
} |
|
966 |
|
|
967 |
url = url + "?" + $.param(params); |
|
968 |
|
|
969 |
var ajax = snf.api.sync("read", undefined, { url: url, |
|
970 |
error:error, |
|
971 |
success:success, |
|
972 |
handles_error:1}); |
|
956 | 973 |
} |
957 | 974 |
}) |
958 | 975 |
|
Also available in: Unified diff