Hello! I am using flashlight theme. Whenever I write on head the following code the Galleries stop working (i can see the datepicker on my form though)... so where is the conflict can anyone help?
<link rel="stylesheet" type="text/css" media="screen" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script>
//$.noConflict();
jQuery(document).ready(function($){
var pickerSetup = function(css, date) {
var el = $(css);
if ( el ) {
el.datepicker({dateFormat:'dd/mm/yy', firstDay:1, mandatory:true, minDate: 0, maxDate:'+2y'});
el.datepicker("setDate", date);
} else {
window.console && console.error("Could not find form element: " + css);
}
};
pickerSetup("#checkin", "+0");
$("#checkout") && pickerSetup("#checkout", "+1");
});
</script>














