Skip to content

Commit 837baf5

Browse files
committed
fixed google+ on index reload
1 parent 1d6ac8d commit 837baf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

war/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ function refreshNews() {
1212
}
1313

1414
$(function() {
15-
var $window = $(window)
16-
1715
refreshNews();
1816

1917
// side bar
2018
$('.bs-docs-sidenav').affix({
2119
offset: {
2220
top: function() {
23-
return $window.width() <= 980 ? 290 : 210
21+
return $(window).width() <= 980 ? 290 : 210
2422
},
2523
bottom: 270
2624
}
@@ -224,5 +222,7 @@ function reloadSocial() {
224222
if (typeof (gapi) != 'undefined') {
225223
delete gapi;
226224
$.getScript('//apis.google.com/js/plusone.js');
225+
} else {
226+
loadGooglePlus();
227227
}
228228
}

0 commit comments

Comments
 (0)