app.js 414 B

1234567891011121314151617
  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);