Merge pull request #1390 from BuhtigithuB/improve/jquery-attr-prop-web2py-js

.att() -> .prop() for setting autocomplete off
This commit is contained in:
mdipierro
2016-07-11 02:52:24 -05:00
committed by GitHub
+3 -3
View File
@@ -201,7 +201,7 @@
showsTime: true, showsTime: true,
timeFormat: '24' timeFormat: '24'
}); });
$(this).attr('autocomplete', 'off'); $(this).prop('autocomplete', 'off');
$(this).data('w2p_datetime', 1); $(this).data('w2p_datetime', 1);
$(this).trigger('click'); $(this).trigger('click');
} }
@@ -218,7 +218,7 @@
showsTime: false showsTime: false
}); });
$(this).data('w2p_date', 1); $(this).data('w2p_date', 1);
$(this).attr('autocomplete', 'off'); $(this).prop('autocomplete', 'off');
$(this).trigger('click'); $(this).trigger('click');
} }
}); });
@@ -227,7 +227,7 @@
if (web2py.isUndefined(active)) { if (web2py.isUndefined(active)) {
$(this).timeEntry({ $(this).timeEntry({
spinnerImage: '' spinnerImage: ''
}).attr('autocomplete', 'off'); }).prop('autocomplete', 'off');
$(this).data('w2p_time', 1); $(this).data('w2p_time', 1);
} }
}); });