Overwrite master.js

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

    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
    Member
    • Mar 2014
    • 8455

    #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.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    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
        Member
        • Mar 2014
        • 8455

        #4
        You should look at code. I don't remember. I will either need to look into code to answer your question.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • luuchu
          Junior Member
          • Jul 2015
          • 9

          #5
          Yes, thanks you

          Comment

          Working...