← Back to team overview

phpdevshell team mailing list archive

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

 

** Changed in: phpdevshell/3.1
       Status: Triaged => Fix Committed

** Changed in: phpdevshell
       Status: Triaged => Fix Committed

-- 
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.:
  Fix Committed
Status in PHPDevShell 3.1 series:
  Fix Committed

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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/692558/+subscriptions


References