NMAPDEV plugin work v0.5 #645 🆕🔎
This commit is contained in:
@@ -366,6 +366,28 @@ function showModalInput (title, message, btnCancel=getString('Gen_Cancel'), btnO
|
||||
$('#modal-input').modal('show');
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
function showModalFieldInput (title, message, btnCancel=getString('Gen_Cancel'), btnOK=getString('Gen_Okay'), curValue="", callbackFunction=null) {
|
||||
// set captions
|
||||
prefix = 'modal-field-input'
|
||||
|
||||
$(`#${prefix}-title`).html (title);
|
||||
$(`#${prefix}-message`).html (message);
|
||||
$(`#${prefix}-cancel`).html (btnCancel);
|
||||
$(`#${prefix}-OK`).html (btnOK);
|
||||
|
||||
if ( callbackFunction != null)
|
||||
{
|
||||
modalCallbackFunction = callbackFunction;
|
||||
}
|
||||
|
||||
$(`#modal-field-input-field`).val(curValue)
|
||||
|
||||
|
||||
// Show modal
|
||||
$(`#${prefix}`).modal('show');
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
function modalDefaultOK () {
|
||||
// Hide modal
|
||||
|
||||
Reference in New Issue
Block a user