mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Add record helper for TXT type. #380
This commit is contained in:
parent
3fea57fca1
commit
d3972b659a
@ -412,6 +412,22 @@
|
|||||||
modal.modal('hide');
|
modal.modal('hide');
|
||||||
})
|
})
|
||||||
modal.modal('show');
|
modal.modal('show');
|
||||||
|
} else if (record_type == "TXT") {
|
||||||
|
var txt_data = record_data.val().replace(/"/g, '"');
|
||||||
|
var modal = $("#modal_custom_record");
|
||||||
|
var form = " <label for=\"txt_record\">TXT Record Data</label> \
|
||||||
|
<textarea style=\"min-width: 100%;color: #333;\" placeholder=\"Your TXT record data\" rows=\"5\" id=\"txt_record\" name=\"txt_record\">" + txt_data + "</textarea> \
|
||||||
|
";
|
||||||
|
modal.find('.modal-body p').html(form);
|
||||||
|
modal.find('#button_save').click(function() {
|
||||||
|
data = modal.find('#txt_record').val();
|
||||||
|
if (! /^".*"$/.test(data)) {
|
||||||
|
data = '"' + data + '"';
|
||||||
|
}
|
||||||
|
record_data.val(data);
|
||||||
|
modal.modal('hide');
|
||||||
|
})
|
||||||
|
modal.modal('show');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -600,7 +600,7 @@ def dashboard_domains_updater():
|
|||||||
return jsonify(response_data)
|
return jsonify(response_data)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/domain/<path:domain_name>', methods=['GET', 'POST'])
|
@app.route('/domain/<path:domain_name>', methods=['GET'])
|
||||||
@login_required
|
@login_required
|
||||||
@can_access_domain
|
@can_access_domain
|
||||||
def domain(domain_name):
|
def domain(domain_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user