Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
12.3
-
None
Description
When you indent php file with javascript inline like that:
public function woocommerce_settings_tabs_fatturehelp($vendor_id = NULL) { $this->load_style(); $this->fields->styleCheckbox(); ?> <div id="fatturehelp-wc-ajax-loading" style="display: none;position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;opacity: 0.8;z-index: 99999;text-align: center;"> <i class="fa fa-spinner fa-spin" style="font-size: 5em;margin-top:45%;"></i> </div> <script type="text/javascript"> function fatturehelp_wc_spinner_start() { jQuery("#fatturehelp-wc-ajax-loading").fadeIn('fast'); } function fatturehelp_wc_spinner_stop() { jQuery("#fatturehelp-wc-ajax-loading").fadeOut('fast'); } </script> <?php }
javascript block will not be indented
Try to indent tha file attached