Change link in upper left corner to always return to app.html/#desktop

I am working on a modified ERPNext 3.6.1 system, and I need to change the link in the upper left corner of the screen (in the navbar) to always explicitly return to app.html/#desktop (currently it just goes to app.html/#). Where is this link's href value set at in the code?

Thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/a8573f03-6f82-421f-a0af-cc4886e00bd2%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Figured it out. In all-app.min.js (under the lib/public/js/wn/ui/toolbar/toolbar.js section), lines 1618 and 1634 need to be modified so their href attributes point to "#desktop" instead of "#".

On Monday, June 23, 2014 11:29:09 AM UTC-4, Chris Horton wrote:
I am working on a modified ERPNext 3.6.1 system, and I need to change the link in the upper left corner of the screen (in the navbar) to always explicitly return to app.html/#desktop (currently it just goes to app.html/#). Where is this link's href value set at in the code?

Thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3a68be2a-56a8-4ed2-a819-359e56de7c17%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

Better change it in the file
lib/public/js/wn/ui/toolbar/toolbar.js

As the min file is generated from a bunch of files and your changes might get lost.

-Anand.

Sent from my phone

On 23-Jun-2014, at 21:29, Chris Horton ch...@thedrainage.com wrote:

lib/public/js/wn/ui/toolbar/toolbar.js


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note

You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5E4939B6-102A-4E89-AB6B-DD22AA589F67%40iwebnotes.com.
For more options, visit https://groups.google.com/d/optout.

1 Like
Thanks for the tip! By the ways, when and how is the min.js file autogenerated? I might want to manually trigger this so I don't have to make my code changes in two places instead of one.

On Monday, June 23, 2014 1:52:35 PM UTC-4, Anand Doshi wrote:
Better change it in the file
lib/public/js/wn/ui/toolbar/toolbar.js

As the min file is generated from a bunch of files and your changes might get lost.

-Anand.

Sent from my phone

> On 23-Jun-2014, at 21:29, Chris Horton <ch...@thedrainage.com> wrote:
>
> lib/public/js/wn/ui/toolbar/toolbar.js



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/67bcaffc-beed-4b7c-8204-920e182a9e39%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
frappe -b

to build minified files

frappe -w 

(watch) while development so that it rebuilds automatically when you save a file (does not minify - so it is easy to detect errors in the console)



On 26-Jun-2014, at 10:06 pm, Chris Horton <ch...@thedrainage.com> wrote:

Thanks for the tip! By the ways, when and how is the min.js file autogenerated? I might want to manually trigger this so I don't have to make my code changes in two places instead of one.

On Monday, June 23, 2014 1:52:35 PM UTC-4, Anand Doshi wrote:
Better change it in the file
lib/public/js/wn/ui/toolbar/toolbar.js

As the min file is generated from a bunch of files and your changes might get lost.

-Anand.

Sent from my phone

> On 23-Jun-2014, at 21:29, Chris Horton <ch...@thedrainage.com> wrote:
>
> lib/public/js/wn/ui/toolbar/toolbar.js



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/67bcaffc-beed-4b7c-8204-920e182a9e39%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/C8A9E249-03E3-440D-8D60-8E427572D390%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.