You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-dev@incubator.apache.org by "Nick Choi (JIRA)" <ji...@apache.org> on 2010/03/01 13:55:05 UTC

[jira] Updated: (PHOTARK-22) Remove hardcoded "/photark" in js files

     [ https://issues.apache.org/jira/browse/PHOTARK-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Choi updated PHOTARK-22:
-----------------------------

    Attachment: hardcode.patch

Here is my suggestion. In fact, I use this solution in my web-site.

Firstly, I add photark.constants.GalleryServiceEndpoint into admin.html/upload.html and also include constants.js to avoid hardcoded.

Next, I change constants.js.

If someone deploys the project into another path, he would change only a variable in constants.js.

Thanks.

> Remove hardcoded "/photark" in js files
> ---------------------------------------
>
>                 Key: PHOTARK-22
>                 URL: https://issues.apache.org/jira/browse/PHOTARK-22
>             Project: PhotArk
>          Issue Type: Improvement
>          Components: PhotArk Admin Services
>         Environment: Ubuntu 9.10 64bit
>            Reporter: Nick Choi
>         Attachments: hardcode.patch
>
>
> A url, "/photark/Gallery?smd" is used in some js files(admin.html, upload.html).
> It has a problem when the project is deployed to different context root.
> It would be changed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.