index.ui.js 478 B

12345678910111213141516
  1. function redirectSetting(event)
  2. {
  3. const $target = $(event.target);
  4. if($target.hasClass('icon-help')) return false;
  5. const $box = $target.closest('.setting-box');
  6. if($box.length == 0) return false;
  7. if(!$box.hasClass('disabled') && $box.data('url') != undefined) loadPage($box.data('url'));
  8. }
  9. $(function()
  10. {
  11. /* Update patch, plugin, news, mooc from zentao.net. */
  12. if(isAdminUser && hasInternet) $.get($.createLink('admin', 'ajaxSetZentaoData'));
  13. });