summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2014-09-21 02:17:23 +0200
committerAlex Legler <alex@a3li.li>2014-09-21 02:17:23 +0200
commite6cae50a783c6fd6a4b90185c60ebb59b4cce519 (patch)
tree61dba251ec2a426ba709cc2974928bea04d5053b /public
parentUse httpdate which uses GMT instead of +0000 (diff)
downloadinfra-status-e6cae50a783c6fd6a4b90185c60ebb59b4cce519.tar.gz
infra-status-e6cae50a783c6fd6a4b90185c60ebb59b4cce519.tar.bz2
infra-status-e6cae50a783c6fd6a4b90185c60ebb59b4cce519.zip
Goodbye sharing
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/infra-status.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/public/assets/js/infra-status.js b/public/assets/js/infra-status.js
index 5b31df8..c675aed 100644
--- a/public/assets/js/infra-status.js
+++ b/public/assets/js/infra-status.js
@@ -28,7 +28,6 @@ jQuery.fn.shake = function (steps, duration, amount, vertical) {
jQuery(function($) {
$('.has-tooltip').tooltip();
- $('.share-btn').popover({html: true, placement: 'left', title: 'Share'});
$('a.notice-link').click(function() {
if ($(this).hasClass('active')) {
@@ -65,16 +64,4 @@ jQuery(function($) {
});
});
-InfraStatus = {
- share: function(obj) {
- var url = $(obj).parents('.notice').data('url');
-
- if ($(obj).hasClass('btn-facebook')) {
- window.open('https://www.facebook.com/sharer/sharer.php?u=' + url);
- } else if ($(obj).hasClass('btn-google-plus')) {
- window.open('https://plus.google.com/share?url=' + url);
- } else if ($(obj).hasClass('btn-twitter')) {
- window.open('https://twitter.com/home?status=' + url);
- }
- }
-}; \ No newline at end of file
+InfraStatus = {}; \ No newline at end of file