Commits

Alvaro Videla committed eecadf9

improves tooltip init

  • Participants
  • Parent commits dd26281

Comments (0)

Files changed (1)

File public/javascripts/cloudstagram.js

     }
 }
 
+/**
+ * This tooltip displays which Cloud Foundry 
+ * instance is serving our request
+ */
+function initInstanceInfoTooltip() {
+    jQuery('#instance-tooltip').tooltip();
+}
+
 jQuery(document).ready(function() {
 
     initTimeAgo();
     initMasonry();
-
-    jQuery('#instance-tooltip').tooltip();
-
-    jQuery("button.close").click(function (event) {
-        jQuery(event.target).parent().remove();
-    });
+    initInstanceInfoTooltip();
 
     if (!loggedin) {
         jQuery('.show-form').click(function (event) {