Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 07:39:28 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155479
Posts in
21708
Topics by
7734
Members
Latest Member:
rofroodoOvego
WebsiteBaker Community Forum
English
Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
(Moderator:
Argos
)
Bug in AJAX jsadmin module. (Easy to fix)
Pages: [
1
]
Go Down
Author
Topic: Bug in AJAX jsadmin module. (Easy to fix) (Read 1337 times)
lousou76
Offline
Posts: 123
Bug in AJAX jsadmin module. (Easy to fix)
«
on:
February 28, 2009, 05:02:28 PM »
I found out recently that if you change the default ADMIN_URL path ('/admin') then the AJAX components drag and drop don't work.
Searching out I found the problem relativly easy.
Inside modules/jsadmin/dropdown.js the path '/admin' is hardcoded.
You have to change it manually but if you really need to fix it you should insert javascript code on every page to replace this path with the correct one while loading.
You cannot insert php in those .js files because the parser wont run it (it doesn't have the .php extension).
The other method is including_once the entire file instead of linking it through css.
That way you can have <? echo ADMIN_URL ?> in that place and the parser will replace it correclty.
LS
Logged
doc
Guest
Re: Bug in AJAX jsadmin module. (Easy to fix)
«
Reply #1 on:
February 28, 2009, 05:31:23 PM »
Hi,
guess the file "dragdrop.js" was meant. Have implemented a different fix than the one proposed to get rid of the hardcoded admin path in JSAdmin module (
Changeset 955
).
Thanks to lousou76 for reporting.
Regards Christian
«
Last Edit: February 28, 2009, 06:33:53 PM by doc
»
Logged
lousou76
Offline
Posts: 123
Re: Bug in AJAX jsadmin module. (Easy to fix)
«
Reply #2 on:
March 01, 2009, 07:00:53 PM »
Very nice thanx!
I guess I forgot to mention how I corercted similar problem in slideshow.js
I added an extra option to the Slideshow object so I give this option when I define the object on my php code.
Cheers
Ls
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...