LPS-35145 - checkAllBox toggles selected and unselected state when selecting pages to publish on staging

Hey @shinnlok,

Attached is an update for http://issues.liferay.com/browse/LPS-35145.  I was trying to add a cssClass and leverage the value if a cssClass is passed into the method, but I was getting an error.  Just thought I'd see if you had any suggestions/feedback for how to fix this. 

Please let me know if you have any questions.  Thanks!