javascript - if statement not functioning correctly -


My arrow may not seem to be shown in the right direction when a falling item collapses or expands ()

Code:

  $ ('body'). ("Click", "span # expandcollapse", function () {$ (this) .text (function (I, currentText) {return currentText === 'Expand all'? 'Collapse all': ' Expand all ';}); if ($ (this) .text () ===' Expand all ') {// Currently ($ ('. Projectscontainer '). ("Div.destarrow") Search ("Div.destarrow"). Search for Hexel ('arrow-right') $ ('. Projectscontainer'). ('Div.destarrow'). Toggleclass ("arrow $ (". Projectscontainer "). $ (" (".srcprojects"). (".srcprojects") Toggle (false);} Other {// Currently Expand $ (". Projectscontainer") (".srcprojects") () () (). ('' Projects' Container '') ("Div.estarrow") Search ("div.destarrow") Haclass ('arrow-down') $ ('. Projectscontainer'). ('Div.destarrow') .toggleClass ("arrow-down arrow-right" );}});   

This line is not working as a purpose:

  if ($ ('. Projectscontainer'). ( "Div.destarrow") Search for HasClass ('Arrow-down') $ ('. Projectscontainer'). ('Div.destarrow') Toggleclass ("arrow-down arrow-right");   

When I click on all extensions, the item should work (to do the job), and point to the arrows (not to work). For example, if I click on one of the green objects, then click on all to expand, the arrow for the clicked item is in a different direction. .

What am I doing? And do I have a big list if I have any performance problems to fix? Thanks!

This is a job.

Your problem was actually with this fact.

Code below

  $ ('. Projectscontainer') search ( "Div.destarrow"). Always return true to this specific case since $ ('. Projectscontainer') Find ("div.destarrow") arrow gives an array of elements in which there are some arrows with arrows in the arrow-down and arrow-down classes, so always return true to the code to use a filter Recalled.   

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -