Refactored extension API

* Modoboa extensions must now declare themselves
* Now using django 1.3 *staticfiles* module
* Better distinction between *static* content and *media* content

see #197
This commit is contained in:
Antoine Nguyen
2012-05-22 11:40:50 +02:00
parent 184177b405
commit 86f855220a
49 changed files with 441 additions and 436 deletions
+5 -5
View File
@@ -2,22 +2,22 @@
* Global javascript utilities
*/
var media_url = "";
var static_url = "";
/*
* A simple function to initialize the value of the global variable
* 'media_url' (corresponding to django's MEDIA_URL variable).
*/
function set_media_url(url) {
media_url = url;
function set_static_url(url) {
static_url = url;
}
/*
* Shortcut function that construct an url from the media_url and the
* given value.
*/
function static_url(value) {
return media_url + value;
function get_static_url(value) {
return static_url + value;
}
function modalbox(e, css, defhref, defcb, defclosecb) {