_layouts/default.html in j1-template-2021.1.19 vs _layouts/default.html in j1-template-2021.1.20
- old
+ new
@@ -222,130 +222,13 @@
{% if webhook_options.enabled %}
<!-- [INFO ] [j1.layout.default.html ] [ place container for WebHook Modals ] -->
<div id="{{webhook_options.xhr_container_id}}"></div>
{% endif %}
- {% comment %} Place container for R-Text resizer modals (deactivated)
- ------------------------------------------------------------------------------
- <!-- [INFO ] [j1.layout.default.html ] [ place container for R-Text resizer modals ] -->
- <div id="rtext_resizer">
- <div class="modal fade right" id="fluidModalRTextResizer" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-side modal-top-right modal-notify modal-success" role="document">
- <!-- Content -->
- <div class="modal-content">
- <!--Header-->
- <div class="modal-header">
- <p class="lead">Text Resizer</p>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <i class="mdi mdi-close mdi-dark mdi-48px"></i>
- </button>
- </div>
- <!-- Body -->
- <div class="modal-body">
- <div class="text align-left">
- <p>
- Change the text size for the main window by the switches from below:
- </p>
- </div>
- <div class="ml-3 mt-5 mb-5">
- <div class="switch">
- <label>
- <input id="textsize-300" name="textsize-300" type="checkbox" checked>
- 300 - Default Size
- </label>
- </div>
- <div class="switch">
- <label>
- <input id="textsize-400" name="textsize-400" type="checkbox">
- 400 - Larger Size
- </label>
- </div>
- <div class="switch">
- <label>
- <input id="textsize-500" name="textsize-500" type="checkbox">
- 500 - Largest Size
- </label>
- </div>
- </div>
- </div>
- <!-- END Content -->
- </div>
- </div>
- </div>
- <!-- [INFO ] [j1.layout.default.html ] [ end modals for r-text resizer ] -->
+ {% comment %} Place container for the r-text resizer
------------------------------------------------------------------------------ {% endcomment %}
-
- {% comment %} JS for R-Text (deactivated)
- ------------------------------------------------------------------------------
- <!-- [INFO ] [j1.layout.default.html ] [ place JS for R-Text resizer modals ] -->
- <script>
- // Set global variables
- var environment = '{{environment}}';
- var logger = log4javascript.getLogger('j1.template.rtext-resizer');
- var $el = $("main[class*='r-text']");
- var base_classes = $("main[class*='r-text']").attr('class').replace(/r-text-[0-9]*/g, '');
- var r_text_default = ' r-text-300';
- var r_text_larger = ' r-text-400';
- var r_text_largest = ' r-text-500';
- var cl;
- var value;
-
- $('input:checkbox[name="textsize-300"]').on('click', function (e) {
- value = $(this).is(':checked');
-
- $('input:checkbox[name="textsize-400"]').prop('checked', false);
- $('input:checkbox[name="textsize-500"]').prop('checked', false);
-
- if (value == true) {
- cl = r_text_default;
- }
- $el.attr('class', base_classes + cl);
-
- if(environment === 'development') {
- logText = 'Changed textsize to: ' +cl;
- logger.info(logText);
- }
- e.stopPropagation();
- });
-
- $('input:checkbox[name="textsize-400"]').on('click', function (e) {
- value = $(this).is(':checked');
-
- $('input:checkbox[name="textsize-300"]').prop('checked', false);
- $('input:checkbox[name="textsize-500"]').prop('checked', false);
-
- if (value == true) {
- cl = r_text_larger;
- }
- $el.attr('class', base_classes + cl);
-
- if(environment === 'development') {
- logText = 'Changed textsize to: ' +cl;
- logger.info(logText);
- }
- e.stopPropagation();
- });
-
- $('input:checkbox[name="textsize-500"]').on('click', function (e) {
- value = $(this).is(':checked');
-
- $('input:checkbox[name="textsize-300"]').prop('checked', false);
- $('input:checkbox[name="textsize-400"]').prop('checked', false);
-
- if (value == true) {
- cl = r_text_largest;
- }
- $el.attr('class', base_classes + cl);
-
- if(environment === 'development') {
- logText = 'Changed textsize to: ' +cl;
- logger.info(logText);
- }
- e.stopPropagation();
- });
- </script>
- <!-- [INFO ] [j1.layout.default.html ] [ end JS for r-text resizer ] -->
- ------------------------------------------------------------------------------ {% endcomment %}
+ <!-- [INFO ] [j1.layout.default.html ] [ place container for the r-text resizer modal ] -->
+ <div id="rtext_resizer_container"></div>
{% comment %} Initialize Tooltips|Popovers
------------------------------------------------------------------------------ {% endcomment %}
<!-- [INFO ] [j1.layout.default.html ] [ initialize BS tooltips|popovers ] -->
<script>