r1322 - in trunk: js plugins
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu Jun 2 15:08:07 2005
New Revision: 1322
Modified:
trunk/js/bxeFunctions.js
trunk/plugins/Drawer.js
Log:
init drawer on start and not on init
- give plugin options also on start and not only on init
Modified: trunk/js/bxeFunctions.js
==============================================================================
--- trunk/js/bxeFunctions.js (original)
+++ trunk/js/bxeFunctions.js Thu Jun 2 15:08:07 2005
@@ -2092,7 +2092,7 @@
for (var i = 0; i < ps.length; i++) {
var p = bxe_plugins[ps[i]];
if (p.start) {
- p.start();
+ p.start(bxe_config.getPluginOptions(ps[i]));
}
}
}
Modified: trunk/plugins/Drawer.js
==============================================================================
--- trunk/plugins/Drawer.js (original)
+++ trunk/plugins/Drawer.js Thu Jun 2 15:08:07 2005
@@ -5,7 +5,12 @@
ar.push("css/kupudrawerstyles.css");
return ar;
}
- this.init = function(options) {
+
+ this.init = function() {
+ }
+
+ this.start = function(options) {
+
var body = document.getElementsByTagName("body")[0];
var div = document.createElement("div");
div.setAttribute("id","kupu-librarydrawer");
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs