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

32 views
Skip to first unread message

Chris Horton

unread,
Jun 23, 2014, 11:29:09 AM6/23/14
to erpnext-dev...@googlegroups.com
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.

Chris Horton

unread,
Jun 23, 2014, 11:59:43 AM6/23/14
to erpnext-dev...@googlegroups.com
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 "#".

Anand Doshi

unread,
Jun 23, 2014, 1:52:35 PM6/23/14
to erpnext-dev...@googlegroups.com
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 <chris...@thedrainage.com> wrote:
>
> lib/public/js/wn/ui/toolbar/toolbar.js

Chris Horton

unread,
Jun 26, 2014, 12:36:14 PM6/26/14
to erpnext-dev...@googlegroups.com
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.

Rushabh Mehta

unread,
Jun 26, 2014, 3:11:42 PM6/26/14
to erpnext-dev...@googlegroups.com
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)



--
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...@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.

Reply all
Reply to author
Forward
0 new messages