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 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";
|
var datetime_format = (typeof w2p_ajax_datetime_format != 'undefined') ? w2p_ajax_datetime_format : "%Y-%m-%d %H:%M:%S";
|
||||||
$("input.date", target).each(function () {
|
$("input.date", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: date_format,
|
ifFormat: date_format,
|
||||||
@@ -79,6 +80,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.datetime", target).each(function () {
|
$("input.datetime", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: datetime_format,
|
ifFormat: datetime_format,
|
||||||
@@ -87,7 +89,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.time", target).each(function () {
|
$("input.time", target).each(function () {
|
||||||
$(this).timeEntry();
|
$(this).timeEntry().attr('autocomplete','off');
|
||||||
});
|
});
|
||||||
/*adds btn class to buttons*/
|
/*adds btn class to buttons*/
|
||||||
$('button', target).addClass('btn');
|
$('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 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";
|
var datetime_format = (typeof w2p_ajax_datetime_format != 'undefined') ? w2p_ajax_datetime_format : "%Y-%m-%d %H:%M:%S";
|
||||||
$("input.date", target).each(function () {
|
$("input.date", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: date_format,
|
ifFormat: date_format,
|
||||||
@@ -79,6 +80,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.datetime", target).each(function () {
|
$("input.datetime", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: datetime_format,
|
ifFormat: datetime_format,
|
||||||
@@ -87,7 +89,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.time", target).each(function () {
|
$("input.time", target).each(function () {
|
||||||
$(this).timeEntry();
|
$(this).timeEntry().attr('autocomplete','off');
|
||||||
});
|
});
|
||||||
/*adds btn class to buttons*/
|
/*adds btn class to buttons*/
|
||||||
$('button', target).addClass('btn');
|
$('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 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";
|
var datetime_format = (typeof w2p_ajax_datetime_format != 'undefined') ? w2p_ajax_datetime_format : "%Y-%m-%d %H:%M:%S";
|
||||||
$("input.date", target).each(function () {
|
$("input.date", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: date_format,
|
ifFormat: date_format,
|
||||||
@@ -79,6 +80,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.datetime", target).each(function () {
|
$("input.datetime", target).each(function () {
|
||||||
|
$(this).attr('autocomplete','off');
|
||||||
Calendar.setup({
|
Calendar.setup({
|
||||||
inputField: this,
|
inputField: this,
|
||||||
ifFormat: datetime_format,
|
ifFormat: datetime_format,
|
||||||
@@ -87,7 +89,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
$("input.time", target).each(function () {
|
$("input.time", target).each(function () {
|
||||||
$(this).timeEntry();
|
$(this).timeEntry().attr('autocomplete','off');
|
||||||
});
|
});
|
||||||
/*adds btn class to buttons*/
|
/*adds btn class to buttons*/
|
||||||
$('button', target).addClass('btn');
|
$('button', target).addClass('btn');
|
||||||
|
|||||||
+1
-1
@@ -951,7 +951,7 @@ class BaseAdapter(ConnectionPool):
|
|||||||
dbpath, '%s_%s.table' % (table._db._uri_hash, tablename))
|
dbpath, '%s_%s.table' % (table._db._uri_hash, tablename))
|
||||||
|
|
||||||
if table._dbt:
|
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)
|
table._loggername = pjoin(dbpath, logfilename)
|
||||||
logfile = self.file_open(table._loggername, 'a')
|
logfile = self.file_open(table._loggername, 'a')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user