From 943aeedb9b10b87e80c1cda8eb5ce13852b9acb2 Mon Sep 17 00:00:00 2001 From: tejagerjovic Date: Fri, 23 Jul 2021 16:23:00 +0200 Subject: [PATCH] =?UTF-8?q?Natsavitve=20>Nastavi=20opozorilo=20na=20vsa=20?= =?UTF-8?q?vpra=C5=A1anja=20-=20popup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/survey/SurveyAdminAjax.php | 25 ++++++++++++++++++++++++- admin/survey/SurveyAdminSettings.php | 2 +- admin/survey/script/script.js | 17 +++++++++++++++-- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/admin/survey/SurveyAdminAjax.php b/admin/survey/SurveyAdminAjax.php index c0dc43d3d..67e2bdec6 100644 --- a/admin/survey/SurveyAdminAjax.php +++ b/admin/survey/SurveyAdminAjax.php @@ -6233,7 +6233,7 @@ class SurveyAdminAjax { } - // Dodeljevanje uredniskega dostopa do ankete + // Alert na vsa vprašanja - popup private function ajax_add_survey_dostop_popup(){ global $lang, $pass_salt, $global_user_id, $site_path, $site_url, $admin_type; @@ -6409,4 +6409,27 @@ class SurveyAdminAjax { } } +// Alert na vsa vprašanja - popup +function ajax_alert_all_popup(){ + global $lang; + + $alert_type = $_POST['alert_type']; + + + // Vsebina popupa + echo ''; + + echo '

'.$lang['srv_'.$alert_type.'_reminder_all'].'

'; + + echo ''; + + echo '
'; + echo '' + .$lang['srv_zapri'].''; + echo '
'; +} + ?> \ No newline at end of file diff --git a/admin/survey/SurveyAdminSettings.php b/admin/survey/SurveyAdminSettings.php index 226a6b015..941cd908f 100644 --- a/admin/survey/SurveyAdminSettings.php +++ b/admin/survey/SurveyAdminSettings.php @@ -278,7 +278,7 @@ class SurveyAdminSettings { echo '
'; echo ''.$lang['srv_opozorilo_vprasanja'].':  - '.$lang['srv_soft_reminder_all'].', + '.$lang['srv_soft_reminder_all'].', '.$lang['srv_hard_reminder_all'].', '.$lang['srv_no_reminder_all'].''; diff --git a/admin/survey/script/script.js b/admin/survey/script/script.js index 58c443c60..ac7244a10 100644 --- a/admin/survey/script/script.js +++ b/admin/survey/script/script.js @@ -5511,7 +5511,20 @@ function removeUploadFromData(usr_id, spr_id, code){ } // Kopiranje URLja za anketo -function CopyToClipboard(copyText) { +function CopyToClipboard(copyText){ var temp_copy = $('').val(copyText).appendTo('body').select() document.execCommand('copy') - } \ No newline at end of file + } + +// Popup - opozorilo na vsa vprašanja +function popupAlertAll(alert_type){ + + $('#fade').fadeTo('slow', 1); + $('#popup_note').html('').fadeIn('slow'); + $("#popup_note").load('ajax.php?a=alert_all_popup', {alert_type, anketa:srv_meta_anketa_id}); +} + +function AlertAllPopupClose(){ + $('#popup_note').fadeOut('slow').html(''); + $('#fade').fadeOut('slow'); +} \ No newline at end of file