Overwrite master.js

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luuchu
    Junior Member
    • Jul 2015
    • 9

    #1

    Overwrite master.js

    Hi,

    I'm trying to overwrite client\src\view\site\master.js. I find with keyword "Site.Master" and i see it in two files: pre-load.json and espo.min.js and it's only working if i modify espo.min.js.
    So how can i overwrite master.js without edit espo.min.js?

    ​Thank you!
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9644

    #2
    Hi

    If you need it only for a particular scope (entity type) you can create custom frontend controller (inherited from Record controller) and there override place where master.js is called.

    Comment

    • luuchu
      Junior Member
      • Jul 2015
      • 9

      #3
      Hi yurikuzn,

      I don't need it for any particular scope. I need to custom notifications feature. To do this i have edited badge.js (client/src/views/notifications/badge.js) and i want to move it to custom. So i want overwrite master.js

      How can i do this? Also can you please explain more how can i define to override place where master.js is called in frontend controller, example for Account entity?

      Thank you!

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9644

        #4
        You should look at code. I don't remember. I will either need to look into code to answer your question.

        Comment

        • luuchu
          Junior Member
          • Jul 2015
          • 9

          #5
          Yes, thanks you

          Comment

          Working...