summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index f52c70ba4..46efe92ff 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'));