Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Add JavaScript to "Edit Use"r Popup

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1036 Views
  • DeklinKelly
    Avatar
    Community Member
    197 Posts

    Add JavaScript to "Edit Use"r Popup Link to this post

    I want to add JavaScript to the popup box for editing users. This does NOT add JavaScript to the popup:

    LeftAndMain::require_javascript('mysite/javascript/adminPopup.js');

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: Add JavaScript to "Edit Use"r Popup Link to this post

    Whats with your use of capitalizing NOT? It will work but chances are you're NOT coding it correctly aye. Like in your post here http://www.silverstripe.org/customising-the-cms/show/290571
    I'm sure it WILL work
    I haven't done it before but checking out UncleChesse's code in DataObjectManager he's making a custom popup form
    class DataObjectManager_Popup extends Form {
    and in the constructor function
    __construct
    Requirements::javascript('dataobject_manager/javascript/dataobjectmanager_popup.js');

    You might want to look at the way DataObjectManager module is pieced together.

    1036 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.