no more autocomplete for date/time inputs, thaks Paolo

This commit is contained in:
mdipierro
2013-07-19 11:31:32 -05:00
parent 5ebaab4ac1
commit 0f2f6a35f4
5 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -72,6 +72,7 @@
var date_format = (typeof w2p_ajax_date_format != 'undefined') ? w2p_ajax_date_format : "%Y-%m-%d";
var datetime_format = (typeof w2p_ajax_datetime_format != 'undefined') ? w2p_ajax_datetime_format : "%Y-%m-%d %H:%M:%S";
$("input.date", target).each(function () {
$(this).attr('autocomplete','off');
Calendar.setup({
inputField: this,
ifFormat: date_format,
@@ -79,6 +80,7 @@
});
});
$("input.datetime", target).each(function () {
$(this).attr('autocomplete','off');
Calendar.setup({
inputField: this,
ifFormat: datetime_format,
@@ -87,7 +89,7 @@
});
});
$("input.time", target).each(function () {
$(this).timeEntry();
$(this).timeEntry().attr('autocomplete','off');
});
/*adds btn class to buttons*/
$('button', target).addClass('btn');