Apply changes of mmariani in Github extpath branch (https://github.com/mmariani/svg-edit/compare/extpath ) as reported by birbag in issue 1184
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2693 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -85,7 +85,7 @@ svgEditor.addExtension('shapes', function() {
|
||||
|
||||
if (!lib) {
|
||||
$('#shape_buttons').html('Loading...');
|
||||
$.getJSON('extensions/shapelib/' + cat_id + '.json', function(result) {
|
||||
$.getJSON(svgEditor.curConfig.extPath + 'shapelib/' + cat_id + '.json', function(result) {
|
||||
cur_lib = library[cat_id] = {
|
||||
data: result.data,
|
||||
size: result.size,
|
||||
@@ -136,7 +136,7 @@ svgEditor.addExtension('shapes', function() {
|
||||
}
|
||||
|
||||
return {
|
||||
svgicons: 'extensions/ext-shapes.xml',
|
||||
svgicons: svgEditor.curConfig.extPath + 'ext-shapes.xml',
|
||||
buttons: [{
|
||||
id: 'tool_shapelib',
|
||||
type: 'mode_flyout', // _flyout
|
||||
|
||||
Reference in New Issue
Block a user