[Redizajn 1KA v2] Testiranje --> Komentarji - dropdown - add comment - v delu

This commit is contained in:
tejagerjovic 2022-09-08 06:51:38 +02:00
parent adcda03fcc
commit 8ee473852f
3 changed files with 1455 additions and 1458 deletions

View File

@ -1447,19 +1447,19 @@ class SurveyAdmin
echo '<span class="faicon fa-angle-right"></span>';
echo '</div>';
echo '<div id="comment_field">';
echo '<div id="survey_comment_0_1">';
$ba = new BranchingAjax($this->anketa);
$ba->add_comment_field(0, '1', '4', false, false);
$ba->add_comment_field(0, '0', '1', false, false);
echo '</div>';
echo '<div class="button_holder">';
echo ' <button class="small blue" onclick="toggleCommentDropdown(); return false;">'.$lang['srv_zapri'].'</button>';
echo '<div class="options">';
echo '<div class="square" onclick="CommentDropdownClearText(); return false;">';
echo '<div class="square" onclick="toggleCommentDropdown(); return false;">';
echo '<span class="faicon fa-times"></span>';
echo '</div>';
echo '<div class="square blue" onclick="add_comment(\'0\', \'1\', \'4\', $(\'#vsebina_0_4\').val()); return false;">';
echo '<div class="square blue" onclick="add_comment(\'0\', \'0\', \'1\', $(\'#vsebina_0_1\').val()); return false;">';
echo '<span class="faicon fa-paper-plane"></span>';
echo '</div>';
echo '</div>';

View File

@ -5712,9 +5712,6 @@ function toggleAddUser(){
$("#new_user_option").toggleClass('displayNone');
$("#existing_user_option").toggleClass('displayNone');
}
function CommentDropdownClearText () {
$("#vsebina_0_4").value = '';
}
function toggleCommentDropdown () {
$("#comment_dropdown").toggleClass('displayNone');

File diff suppressed because it is too large Load Diff