$('#telemetry_panel').modal({
title: '{{ _T("Send telemetry information")|e('js') }}',
class: 'large',
- actions: [{
- text : '{{ _T("Send")|e('js') }}',
- icon : 'share',
- class : 'primary icon labeled approve',
- click : function() {
+ onApprove: function() {
$.ajax({
url: '{{ url_for('telemetrySend') }}',
method: 'POST',
modal_classname: "redalert",
} %}
}
- });}
+ });
+ },
+ onDeny: function() {
+ $(this).find('.tdata').empty();
+ },
+ actions: [{
+ text : '{{ _T("Send")|e('js') }}',
+ icon : 'share',
+ class : 'primary icon labeled approve'
}, {
text : '{{ _T("Cancel")|e('js') }}',
- class : 'icon labeled cancel',
icon : 'times',
- click : function() {
- $(this).find('.tdata').empty();
- }
+ class : 'icon labeled cancel'
}]
});