diff --git a/admin/survey/SurveyAdminAjax.php b/admin/survey/SurveyAdminAjax.php
index 3573c5588..8feffcfaa 100644
--- a/admin/survey/SurveyAdminAjax.php
+++ b/admin/survey/SurveyAdminAjax.php
@@ -4916,6 +4916,11 @@ class SurveyAdminAjax {
sisplet_query("UPDATE post SET vsebina='$vsebina' WHERE id='$id'");
+ } elseif ($_GET['a'] == 'comment_delete') {
+ $id = $_POST['id'];
+
+ $sql = sisplet_query("DELETE FROM post WHERE id='$id'");
+
} elseif ($_GET['a'] == 'archivePopup') {
echo '
';
- echo '';
+ echo '
';
echo ''; //manjka funkcija za izbris
echo $lang['srv_comment_delete'];
echo '
';
diff --git a/admin/survey/script/vprasanje.js b/admin/survey/script/vprasanje.js
index 957172bad..11d6e1c48 100644
--- a/admin/survey/script/vprasanje.js
+++ b/admin/survey/script/vprasanje.js
@@ -762,6 +762,10 @@ function comment_on_comment (id, user, date, spr_id) {
$(".options_dropdown").addClass("displayNone");
}
+function comment_delete (id) {
+ $.post("ajax.php?a=comment_delete\', {id: \''+id+'\', anketa: srv_meta_anketa_id}, function() {window.location.reload();}); return false");
+}
+
function change_NG_cancelButton(value){
if(value == 1){