Nutze zentrales JQuery
Bernd Wurst

Bernd Wurst commited on 2014-01-31 17:11:13
Zeige 2 geänderte Dateien mit 2 Einfügungen und 11 Löschungen.

... ...
@@ -18,11 +18,8 @@ require_once('inc/security.php');
18 18
 
19 19
 function do_ajax_cert_login() {
20 20
   global $prefix;
21
-  $path = config('jquery_ui_path');
21
+  require_once('inc/jquery.php');
22 22
   html_header('
23
-<link rel="stylesheet" href="'.$path.'/themes/base/jquery-ui.css" />
24
-<script type="text/javascript" src="'.$path.'/jquery-1.9.0.js" ></script>
25
-<script type="text/javascript" src="'.$path.'/ui/jquery-ui.js" ></script>
26 23
 <script type="text/javascript">
27 24
   function redirect(status) {
28 25
     if (status == "ok") {
... ...
@@ -82,13 +82,7 @@ $debug = '';
82 82
 if ($debugmode)
83 83
   $debug = 'debug&amp;';
84 84
 
85
-$path = config('jquery_ui_path');
86
-
87
-html_header('
88
-<link rel="stylesheet" href="'.$path.'/themes/base/jquery-ui.css" />
89
-<script type="text/javascript" src="'.$path.'/jquery-1.9.0.js" ></script>
90
-<script type="text/javascript" src="'.$path.'/ui/jquery-ui.js" ></script>
91
-');
85
+require_once('inc/jquery.php');
92 86
 
93 87
 output(html_form('su_su', '', '', '<p><label for="query"><strong>Suchtext:</strong></label> <input type="text" name="query" id="query" /> <input type="submit" value="Suchen" /></p>
94 88
 '));
95 89