jQuery('imput.date',target).focus, thanks Anthony
This commit is contained in:
1 parent
fd6b6ff6c8
commit
f5c2867997
4 files changed
+10
-10
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 1.99.3 (2011-11-25 16:25:01) dev
|
Version 1.99.3 (2011-11-25 18:04:29) dev
|
||||||
@@ -29,9 +29,9 @@ function web2py_ajax_fields(target) {
|
|||||||
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
||||||
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";
|
||||||
jQuery("input.date").live('focus',function() { Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
jQuery("input.date",target).focus(function() {Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
||||||
jQuery("input.datetime").live('focus', function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
jQuery("input.datetime",target).focus(function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
||||||
jQuery("input.time").live('focus', function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
jQuery("input.time",target).focus(function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
||||||
};
|
};
|
||||||
|
|
||||||
function web2py_ajax_init(target) {
|
function web2py_ajax_init(target) {
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ function web2py_ajax_fields(target) {
|
|||||||
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
||||||
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";
|
||||||
jQuery("input.date").live('focus',function() { Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
jQuery("input.date",target).focus(function() {Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
||||||
jQuery("input.datetime").live('focus', function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
jQuery("input.datetime",target).focus(function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
||||||
jQuery("input.time").live('focus', function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
jQuery("input.time",target).focus(function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
||||||
};
|
};
|
||||||
|
|
||||||
function web2py_ajax_init(target) {
|
function web2py_ajax_init(target) {
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ function web2py_ajax_fields(target) {
|
|||||||
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
jQuery("input[type='checkbox'].delete", target).click(function(){ if(this.checked) if(!confirm(confirm_message)) this.checked=false; });
|
||||||
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";
|
||||||
jQuery("input.date").live('focus',function() { Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
jQuery("input.date",target).focus(function() {Calendar.setup({inputField:this, ifFormat:date_format, showsTime:false });});
|
||||||
jQuery("input.datetime").live('focus', function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
jQuery("input.datetime",target).focus(function() {Calendar.setup({inputField:this, ifFormat:datetime_format, showsTime: true, timeFormat: "24" });});
|
||||||
jQuery("input.time").live('focus', function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
jQuery("input.time",target).focus(function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
|
||||||
};
|
};
|
||||||
|
|
||||||
function web2py_ajax_init(target) {
|
function web2py_ajax_init(target) {
|
||||||
|
|||||||
Reference in new issue
Block a user