Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Correct path plugins issue when reload wPaint#81

Closed
memiks wants to merge 1 commit intowebsanova:masterfrom
memiks:master
Closed

Correct path plugins issue when reload wPaint#81
memiks wants to merge 1 commit intowebsanova:masterfrom
memiks:master

Conversation

@memiks
Copy link

@memiks memiks commented Mar 14, 2014

When refresh wPaint, the options.path is added each time.

So this modification will:

  • add default image if no image provided
  • add option path only if plugin path not already start by it.

Regards,
Frederic.

- add default image if no image provided
- add option path if plugin path not already start by it.
@pascalbeynel
Copy link

I'm interested by this issue, I got the same problem.
If I set path as : /asset/wpaint/, removing and creating a new wpaint (i'm using jquery) will have the path to be /asset/wpaint//asset/wpaint/ so icons are not loaded (provide a 404 on img call).

@pascalbeynel
Copy link

Same issue as #73

@memiks
Copy link
Author

memiks commented Apr 3, 2014

In fact yes it is the same issue as #73 but I add a test on "menu.items[key].img" in order to add default image if plugin did not have images.

@memiks memiks closed this by deleting the head repository May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments