(connectionId, key)
| 832 | } |
| 833 | |
| 834 | function exportKey (connectionId, key) { |
| 835 | var node = null; |
| 836 | if (typeof (connectionId) === 'object') { |
| 837 | // context menu click |
| 838 | node = getKeyTree().get_node(connectionId.reference[0]); |
| 839 | key = getFullKeyPath(node); |
| 840 | connectionId = getRootConnection(node); |
| 841 | } |
| 842 | $.ajax({ |
| 843 | method: 'GET', |
| 844 | url: 'tools/forms/export', |
| 845 | success: function (res) { |
| 846 | var body = $('#body') |
| 847 | body.html(res); |
| 848 | body.find('#connectionExportField option[value="' + connectionId + '"]').attr('selected', true); |
| 849 | body.find('#exportKeyPrefix').val(key); |
| 850 | } |
| 851 | }); |
| 852 | } |
| 853 | |
| 854 | function deleteKey (connectionId, key) { |
| 855 | var node = null; |
nothing calls this directly
no test coverage detected