diff --git a/js/util.js b/js/util.js index f52c70ba42..46efe92ffe 100644 --- a/js/util.js +++ b/js/util.js @@ -438,7 +438,7 @@ var SN = { // StatusNet }, NoticeLocationAttach: function() { - if($('#notice_data-location_enabled').size()) { + if ($('#notice_data-location_enabled').length > 0) { if(navigator.geolocation) { $('#notice_data-location_enabled').change(function() { $.cookie(SN.C.S.NoticeLocationCookieName, $('#notice_data-location_enabled').attr('checked'));