Hi,
I have a little bit of javascript for a jquery calendar-popup in my template.
All goes well as long as the site is in debug mode.
When I place the debugmode off, the script gets parsed differently.
with
$config['debug'] = "1";the script is:
$(document).ready(function() {
$("#date_from").datepicker({ dateFormat: "yy-mm-dd" });
$("#date_to").datepicker({ dateFormat: "yy-mm-dd" });
});with
$config['debug'] = "0";the script is:
$(document).ready(function() {
$("#date_from").datepicker();
$("#date_to").datepicker();
});Now I want the script to be like in the debug version, but I don’t want the debug version to be on.
What could I do?