mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Add support for menu base dir configuration.
This commit is contained in:
parent
5216f95410
commit
e033e8552c
@ -19,10 +19,11 @@
|
|||||||
mindplot.widget.Menu = new Class({
|
mindplot.widget.Menu = new Class({
|
||||||
Extends: mindplot.widget.IMenu,
|
Extends: mindplot.widget.IMenu,
|
||||||
|
|
||||||
initialize : function(designer, containerId, mapId, readOnly) {
|
initialize : function(designer, containerId, mapId, readOnly, baseUrl) {
|
||||||
this.parent(designer, containerId, mapId);
|
this.parent(designer, containerId, mapId);
|
||||||
|
|
||||||
var baseUrl = "../css/widget";
|
baseUrl = !$defined(baseUrl) ? "../" : baseUrl;
|
||||||
|
var widgetsBaseUrl = baseUrl + "css/widget";
|
||||||
|
|
||||||
// Stop event propagation ...
|
// Stop event propagation ...
|
||||||
$(this._containerId).addEvent('click', function(event) {
|
$(this._containerId).addEvent('click', function(event) {
|
||||||
@ -130,7 +131,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
designer.changeBackgroundColor(hex);
|
designer.changeBackgroundColor(hex);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this._toolbarElems.push(new mindplot.widget.ColorPalettePanel('topicColor', topicColorModel, baseUrl));
|
this._toolbarElems.push(new mindplot.widget.ColorPalettePanel('topicColor', topicColorModel, widgetsBaseUrl));
|
||||||
|
|
||||||
// Border color item ...
|
// Border color item ...
|
||||||
var borderColorModel =
|
var borderColorModel =
|
||||||
@ -152,7 +153,7 @@ mindplot.widget.Menu = new Class({
|
|||||||
designer.changeBorderColor(hex);
|
designer.changeBorderColor(hex);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this._toolbarElems.push(new mindplot.widget.ColorPalettePanel('topicBorder', borderColorModel, baseUrl));
|
this._toolbarElems.push(new mindplot.widget.ColorPalettePanel('topicBorder', borderColorModel, widgetsBaseUrl));
|
||||||
|
|
||||||
// Font color item ...
|
// Font color item ...
|
||||||
var fontColorModel =
|
var fontColorModel =
|
||||||
|
Loading…
Reference in New Issue
Block a user