Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 625)
+++ trunk/CHANGELOG	(revision 626)
@@ -10,8 +10,10 @@
 # = Bugfix
 ! = Update/Change
 
-------------------------------------- 2.7.0 -------------------------------------
-28-Jan-2008 Thomas Hornik
+------------------------------------- 2.7.0 -------------------------------------
+28-Jan-2008 Christian Sommer
+#	Fixed some bugs in the Javascript Admin modul
+28-Jan-2008 Thomas Hornik
 +	Added Text-CAPTCHA on request. The captcha-text will be stored in temp/.captcha_text.txt
 27-Jan-2008 Christian Sommer
 !	fixed CSS background color of the installer CSS
Index: trunk/wb/modules/jsadmin/tool.php
===================================================================
--- trunk/wb/modules/jsadmin/tool.php	(revision 625)
+++ trunk/wb/modules/jsadmin/tool.php	(revision 626)
@@ -73,12 +73,10 @@
   $YUI_PUT_MISSING_Files=''; // String with missing files
   reset($js_yui_scripts);
   foreach($js_yui_scripts as $script) {
-    $fcheck =fopen($script,"r");  // Check if File Exist , This is better the file_exists
-    if(!$fcheck){
+     if(!file_exists($WB_MAIN_RELATIVE_PATH.$script)){
         $YUI_ERROR=true;
-        $YUI_PUT_MISSING_Files =$YUI_PUT_MISSING_Files."- ".$script."<br />";   // catch all missing files
+        $YUI_PUT_MISSING_Files =$YUI_PUT_MISSING_Files."- ".WB_URL.$script."<br />";   // catch all missing files
     }
-    fclose($fcheck);
 	}
 	if($YUI_ERROR)
 	{
@@ -111,7 +109,7 @@
    <tr>
 	     <td>&nbsp;</td>
 	     <td>
-		   <input type="submit" name="submit" value="<?php echo $TEXT['SAVE']; ?>" onClick="javascript: if(!confirm('<?php echo $TEXT['ARE_YOU_SURE']; ?>')) { return false; }" />
+		   <input type="submit" name="submit" value="<?php echo $TEXT['SAVE']; ?>" />
 	    </td>
    </tr>
    </table>
Index: trunk/wb/modules/jsadmin/jsadmin_backend_include.php
===================================================================
--- trunk/wb/modules/jsadmin/jsadmin_backend_include.php	(revision 625)
+++ trunk/wb/modules/jsadmin/jsadmin_backend_include.php	(revision 626)
@@ -66,7 +66,7 @@
 	} elseif($page_type == 'sections') {
 		if(get_setting('mod_jsadmin_ajax_order_sections', '1')) {
 			$js_scripts[] = 'dragdrop.js';
-			$js_buttonCell= 3; // This ist the Cell where the Button "Up" is , by Swen Uth
+			$js_buttonCell= 4; // This ist the Cell where the Button "Up" is , by Swen Uth
 		}
 	} elseif($page_type == 'config') {
 		$js_scripts[] = 'tool.js';
@@ -118,16 +118,14 @@
   $YUI_ERROR=false; // ist there an Error
   $YUI_PUT ='';   // String with javascipt includes
   $YUI_PUT_MISSING_Files=''; // Strin with missing files
-  
+  reset($js_yui_scripts);
   foreach($js_yui_scripts as $script) {
-    $fcheck =fopen($script,"r");  // Check if File Exist , This is better the file_exists
-    if($fcheck){
-        $YUI_PUT=$YUI_PUT."<script type='text/javascript' src='".$script."'></script>\n"; // go and include
+    if(file_exists($WB_MAIN_RELATIVE_PATH.$script)){
+        $YUI_PUT=$YUI_PUT."<script type='text/javascript' src='".$WB_MAIN_RELATIVE_PATH.$script."'></script>\n"; // go and include
     } else {
         $YUI_ERROR=true;
-        $YUI_PUT_MISSING_Files=$YUI_PUT_MISSING_Files."- ".$script."\\n";   // catch all missing files
+        $YUI_PUT_MISSING_Files=$YUI_PUT_MISSING_Files."- ".WB_URL.$script."\\n";   // catch all missing files
     }
-    fclose($fcheck);
 	}
 	if(!$YUI_ERROR)
 	{
Index: trunk/wb/modules/jsadmin/jsadmin.php
===================================================================
--- trunk/wb/modules/jsadmin/jsadmin.php	(revision 625)
+++ trunk/wb/modules/jsadmin/jsadmin.php	(revision 626)
@@ -51,7 +51,8 @@
 }
 
 // the follwing variables to use and check existing the YUI
-$YUI_PATH = '../../include/yui';
+$WB_MAIN_RELATIVE_PATH="../..";
+$YUI_PATH = '/include/yui';
 $js_yui_min = "-min";  // option for smaller code so faster
 $js_yui_scripts = Array();
 $js_yui_scripts[] = $YUI_PATH.'/yahoo/yahoo'.$js_yui_min.'.js';
