browse.js 481 B

1234567891011121314151617
  1. $(document).ready(function()
  2. {
  3. $.setAjaxJSONER('.review', function(response)
  4. {
  5. if(response.message)
  6. {
  7. bootbox.alert(response.message);
  8. }
  9. /* If the response has locate param, locate the browse. */
  10. if(response.locate == 'reload') return location.href = location.href;
  11. if(response.locate) return location.href = response.locate;
  12. });
  13. /* expand active tree. */
  14. $('.tree li.active .hitarea').click();
  15. });