Project

General

Profile

« Previous | Next » 

Revision 955

Added by doc over 15 years ago

Removed hardcoded admin path from JSAdmin module (jsadmin/js/dragdrop.js)

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14
28-Feb-2009 Christian Sommer
15
+	Removed hardcoded admin path from JSAdmin module (jsadmin/js/dragdrop.js)
14 16
25-Feb-2009 Matthias Gallas
15 17
+	Added language support for template_description (affects templates and themes)
16 18
#	fixed wrong path to images in news and form modul
trunk/wb/modules/jsadmin/jsadmin_backend_include.php
112 112

  
113 113
<script language="JavaScript">
114 114
<!--
115
var JsAdmin = { WB_URL : '<?php echo WB_URL ?>' };
115
var JsAdmin = { WB_URL : '<?php echo WB_URL ?>', ADMIN_URL : '<?php echo ADMIN_URL ?>' };
116 116
var JsAdminTheme = { THEME_URL : '<?php echo THEME_URL ?>' };
117 117
//-->
118 118
</script>
trunk/wb/modules/jsadmin/js/dragdrop.js
23 23

  
24 24
	var page_type = '';
25 25
	var is_tree = false;
26
	if(document.URL.indexOf("/admin/pages/index.php") > 0) {
26

  
27
	if(document.URL.indexOf(JsAdmin.ADMIN_URL + "/pages/index.php") > -1) {
27 28
		page_type = 'pages';
28 29
		is_tree = true;
29 30

  

Also available in: Unified diff