Commit 635fcd621aa640c8fed626fcdb0fd558ee4ffdbb

Authored by Leonardo Merlin
1 parent d4743554

Deprecated code?

Showing 1 changed file with 18 additions and 18 deletions   Show diff stats
@@ -1143,29 +1143,29 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun @@ -1143,29 +1143,29 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun
1143 e.preventDefault(); 1143 e.preventDefault();
1144 }); 1144 });
1145 1145
1146 - var popupCenter = function(url, title, w, h) {  
1147 - var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left;  
1148 - var dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top; 1146 + // var popupCenter = function(url, title, w, h) {
  1147 + // var dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left;
  1148 + // var dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top;
1149 1149
1150 - var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;  
1151 - var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; 1150 + // var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
  1151 + // var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
1152 1152
1153 - var left = ((width / 2) - (w / 2)) + dualScreenLeft;  
1154 - var top = ((height / 3) - (h / 3)) + dualScreenTop; 1153 + // var left = ((width / 2) - (w / 2)) + dualScreenLeft;
  1154 + // var top = ((height / 3) - (h / 3)) + dualScreenTop;
1155 1155
1156 - var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); 1156 + // var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
1157 1157
1158 - // Puts focus on the newWindow  
1159 - if (window.focus) {  
1160 - newWindow.focus();  
1161 - }  
1162 - }; 1158 + // // Puts focus on the newWindow
  1159 + // if (window.focus) {
  1160 + // newWindow.focus();
  1161 + // }
  1162 + // };
1163 1163
1164 - $(document).on('click', '.social a.popup', {}, function popUp(e) {  
1165 - var self = $(this);  
1166 - popupCenter(self.attr('href'), self.find('.rrssb-text').html(), 580, 470);  
1167 - e.preventDefault();  
1168 - }); 1164 + // $(document).on('click', '.social a.popup', {}, function popUp(e) {
  1165 + // var self = $(this);
  1166 + // popupCenter(self.attr('href'), self.find('.rrssb-text').html(), 580, 470);
  1167 + // e.preventDefault();
  1168 + // });
1169 1169
1170 $(document).on('click', '#logout-button', function (e){ 1170 $(document).on('click', '#logout-button', function (e){
1171 var self = $(this); 1171 var self = $(this);