File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 $ (' .jquery_level2_class' ).each (function (elem ){
7070 $ (this ).addClass ($ (this ).attr (' data-class' ));
7171 });
72+ // Form elements to show / hide
7273 $ (' .jquery_level2_show' ).show ();
7374
75+ // Form input to enable / disable
76+ $ (' .jquery_level2_enable' ).prop (' disabled' , false );
77+
7478 }else {
7579 $ (' .jquery_level2_class' ).each (function (elem ){
7680 $ (this ).attr (' class' ,' jquery_level2_class' );
7781 });
82+ // Form elements to show / hide
7883 $ (' .jquery_level2_show' ).hide ();
84+
85+ // Form input to enable / disable
86+ $ (' .jquery_level2_enable' ).prop (' disabled' , true );
7987 }
8088
8189 var other = resp == 1 ? 2 : 1 ;
Original file line number Diff line number Diff line change 1- <div class =" mt-4 mb-3" >
1+ <div class =" mt-4 mb-3 jquery_level2_show " >
22 <h3 style =" margin-top : 0em ;" >{{ trans (' panichd::lang.comments' ) } }
33 <button type =" button" id =" add_comment" class =" btn btn-light btn-default btn-sm" >{{ trans (' panichd::lang.show-ticket-add-comment' ) } } </button >
44 </h3 >
55</div >
6- <div id =" comments" ></div >
6+ <div id =" comments" class = " jquery_level2_show " ></div >
77
88<div id =" comment_template" class =" card bg-light mb-3 comment_block" style =" display : none ;" >
99 <div class =" card-header pt-1 pr-3 pb-0 pl-2" >
2626 </h6 >
2727 </div >
2828 <div class =" card-body" >
29- <input type =" hidden" class =" input_comment_num" name =" form_comments[]" value =" " >
30- <input type =" hidden" class =" input_response_type" name =" response_x" value =" note" disabled =" disabled" >
31- <textarea style =" display : none " rows =" 5" class =" form-control input_comment_text" name =" comment_x" cols =" 50" disabled =" disabled" ></textarea >
29+ <input type =" hidden" class =" jquery_level2_enable input_comment_num" name =" form_comments[]" value =" " >
30+ <input type =" hidden" class =" jquery_level2_enable input_response_type" name =" response_x" value =" note" disabled =" disabled" >
31+ <textarea style =" display : none " rows =" 5" class =" form-control jquery_level2_enable input_comment_text" name =" comment_x" cols =" 50" disabled =" disabled" ></textarea >
3232 <div class =" jquery_error_text" ></div >
3333 </div >
3434</div >
You can’t perform that action at this time.
0 commit comments