← Back to team overview

phpdevshell team mailing list archive

[Bug 692558] Re: Move JS theme init code to a function

 

** Changed in: phpdevshell
       Status: New => Triaged

** Changed in: phpdevshell
     Assignee: (unassigned) => Greg (gregfr)

** Changed in: phpdevshell
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/692558

Title:
  Move JS theme init code to a function

Status in Open Source PHP RAD Framework with UI.:
  Triaged
Status in PHPDevShell 3.1 series:
  Triaged

Bug description:
  When a page loads, the /themes/cloud/js/theme.js file has a .ready() function which applies/removes classes to different elements.

I have added additional js that will allow a user to add and remove new elements to the page, but when I add the element, the class changes applied by themes.js are not applied, since they were run when the page was loaded.

How can I have the .ready() function run again when the user adds a new element to the page? Is there a way to call these functions from javascript to run them again so the newly added elements will get the class changes as well?







References