Răsfoiți Sursa

Fix #402 modal button valid HTML

Vince Salvino 4 ani în urmă
părinte
comite
49673f2bec
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      coderedcms/templates/coderedcms/blocks/modal_block.html

+ 2 - 2
coderedcms/templates/coderedcms/blocks/modal_block.html

@@ -5,7 +5,7 @@
 {% block block_render %}
 
 {% generate_random_id as modal_id %}
-<a href="#" data-toggle="modal" data-target="#{{modal_id}}" type="button" class="btn {{self.button_size}} {{self.button_style}}">{{self.button_title}}</a>
+<a href="#" data-toggle="modal" data-target="#{{modal_id}}" role="button" class="btn {{self.button_size}} {{self.button_style}}">{{self.button_title}}</a>
 
 <div id="{{modal_id}}" class="modal fade" role="dialog">
   <div class="modal-dialog">
@@ -33,4 +33,4 @@
 
   </div>
 </div>
-{% endblock %}
+{% endblock %}