Update ajax_page_list.php

When clicking for a second time on a category ajax gets triggered again. By checking if the item has the class selected. We can prevent to make the ajax call since the data is already there.