Revision 1eb9b57e ui/static/snf/js/ui/web/ui_connect_view.js
b/ui/static/snf/js/ui/web/ui_connect_view.js | ||
---|---|---|
37 | 37 |
this.subinfo = this.info.find(".subinfo"); |
38 | 38 |
}, |
39 | 39 |
|
40 |
beforeOpen: function() { |
|
41 |
this.clip = new snf.util.ClipHelper(); |
|
42 |
this.connect.parent().append(this.clip.cont); |
|
43 |
}, |
|
44 |
|
|
40 | 45 |
handle_success: function(data) { |
41 | 46 |
this.error.hide(); |
42 | 47 |
this.info.show(); |
... | ... | |
49 | 54 |
|
50 | 55 |
this.subinfo.html(data.subinfo).show(); |
51 | 56 |
if (!data.subinfo) { this.subinfo.hide() }; |
52 |
|
|
57 |
|
|
58 |
if (data.ssh) { |
|
59 |
this.clip.cont.show(); |
|
60 |
this.clip.setText(data.link.title); |
|
61 |
} else { |
|
62 |
this.clip.cont.hide(); |
|
63 |
} |
|
53 | 64 |
}, |
54 | 65 |
|
55 | 66 |
handle_error: function() { |
Also available in: Unified diff