ems-admin-server_admin.js 607 B

1234567891011121314151617181920212223242526
  1. /* DO NOT EDIT - IT WILL BE OVERWRITTEN ON SERVER RESTART */
  2. jQuery.ajaxSetup({
  3. cache: true
  4. });
  5. $lib.orgtitle = $("title").html();
  6. $("body").addClass("anonymous");
  7. $lib.ondebug=$lib.ondebug||$lib.on("debug",function(level,msg){
  8. console.log(level,msg);
  9. })
  10. $lib.on("ems-admin-start",function(){
  11. $lib.emit("debug","info","ems-admin-start called");
  12. })
  13. try{
  14. require("./__modules")($lib);
  15. }catch(e){
  16. $lib.emit("debug","error","modules",e);
  17. }
  18. try{
  19. require("../functions.js")($lib);
  20. }catch(e){
  21. $lib.emit("debug","error","functions",e);
  22. }
  23. setTimeout(function(){
  24. $lib.emit("ems-admin-start",$lib);
  25. },25)