mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01:00
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:
+5
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user