Browse code

Configurable jQuery-path

Bernd Wurst authored on21/01/2013 17:04:26
Showing2 changed files
... ...
@@ -35,6 +35,7 @@ $config['mime_type'] = 'application/xhtml+xml';
35 35
 
36 36
 $config['session_name'] = 'CONFIG_SCHOKOKEKS_ORG';
37 37
 $config['theme'] = 'default';
38
+$config['jquery_ui_path'] = 'https://source.schokokeks.org/external/jquery/jquery-ui-1.10.0/';
38 39
 
39 40
 ini_set('error_reporting','On');
40 41
 
... ...
@@ -78,13 +78,15 @@ $debug = '';
78 78
 if ($debugmode)
79 79
   $debug = 'debug&';
80 80
 
81
+$path = config('jquery_ui_path');
82
+
81 83
 html_header('
82
-<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css">
83
-<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.js" ></script>
84
-<script type="text/javascript" src="http://code.jquery.com/ui/1.10.0/jquery-ui.js" ></script>
84
+<link rel="stylesheet" href="'.$path.'/themes/base/jquery-ui.css">
85
+<script type="text/javascript" src="'.$path.'/jquery-1.9.0.js" ></script>
86
+<script type="text/javascript" src="'.$path.'/ui/jquery-ui.js" ></script>
85 87
 ');
86 88
 
87
-output(html_form('su_su', '', '', '<label for="query"><strong>Suchtext:</strong></label> <input type="text" name="query" id="query" />
89
+output(html_form('su_su', '', '', '<label for="query"><strong>Suchtext:</strong></label> <input autocomplete="off" type="text" name="query" id="query" />
88 90
 '));
89 91
 output('
90 92
 <script>