mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-15 04:26:05 +00:00
Add general modal functions
The two generic modals are defined in the base template, and are used in various templates. So provide functions and remove duplicate code.
This commit is contained in:
@ -446,9 +446,7 @@
|
||||
|
||||
if(!canSearch)
|
||||
{
|
||||
var modal = $("#modal_error");
|
||||
modal.find('.modal-body p').text("Please fill out the " + main_field + " field.");
|
||||
modal.modal('show');
|
||||
showErrorModal("Please fill out the " + main_field + " field.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user