no more autocomplete for date/time inputs, thaks Paolo
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.6.0-development+timestamp.2013.07.19.04.38.04
|
||||
Version 2.6.0-development+timestamp.2013.07.19.11.30.43
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
+1
-1
@@ -951,7 +951,7 @@ class BaseAdapter(ConnectionPool):
|
||||
dbpath, '%s_%s.table' % (table._db._uri_hash, tablename))
|
||||
|
||||
if table._dbt:
|
||||
logfilename = self._adepter.adapter_args.get('logfile','sql.log')
|
||||
logfilename = self.adapter_args.get('logfile','sql.log')
|
||||
table._loggername = pjoin(dbpath, logfilename)
|
||||
logfile = self.file_open(table._loggername, 'a')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user