Fixed date_picker caching in debug mode
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 16 Aug 2008 22:07:14 +0000 (22:07 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 16 Aug 2008 22:07:14 +0000 (22:07 +0000)
includes/ui/ui_view.inc

index 65a9f39341ab8cfcb491ee0aa7b9857d678ff006..7ca792aee8e30cd76afdd4a81d76d7f4bc888f4e 100644 (file)
@@ -590,7 +590,7 @@ function get_js_png_fix()
 
 function get_js_date_picker()
 {
-    global $comp_path;
+    global $comp_path, $go_debug;
     $fpath = $comp_path.'/'.user_company().'/js_cache/'.'date_picker.js';
 
        $js = "<style>
@@ -617,7 +617,7 @@ function get_js_date_picker()
 ";
     add_js_source($js);
 
-    if (!file_exists($fpath)) {
+    if (!file_exists($fpath) || $go_debug) {
 
        global $dateseps, $date_system;