app.js 466 B

12345678910111213141516171819202122
  1. var Gogits = {};
  2. (function($){
  3. Gogits.showTooltips = function(){
  4. $("body").tooltip({
  5. selector: "[data-toggle=tooltip]"
  6. //container: "body"
  7. });
  8. };
  9. Gogits.showTab = function (selector, index) {
  10. if (!index) {
  11. index = 0;
  12. }
  13. $(selector).tab("show");
  14. $(selector).find("li:eq(" + index + ") a").tab("show");
  15. }
  16. })(jQuery);
  17. function initCore(){
  18. Gogits.showTooltips();
  19. }