removed anytime from admin and examples

This commit is contained in:
Massimo Di Pierro
2011-11-25 16:25:06 -06:00
parent 485e451115
commit fd6b6ff6c8
13 changed files with 100 additions and 1714 deletions
+4 -8
View File
@@ -29,15 +29,11 @@ function web2py_ajax_fields(target) {
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 datetime_format = (typeof w2p_ajax_datetime_format != 'undefined') ? w2p_ajax_datetime_format : "%Y-%m-%d %H:%M:%S";
try {
jQuery("input.datetime", target).AnyTime_noPicker().AnyTime_picker({
format: datetime_format.replace('%M','%i')});
jQuery("input.date", target).AnyTime_noPicker().AnyTime_picker({
format: date_format.replace('%M','%i')});
jQuery("input.time", target).AnyTime_noPicker().AnyTime_picker({
format: "%H:%i:%S"});
} catch(e) {};
jQuery("input.date").live('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.time").live('focus', function() { var el = jQuery(this);if (!el.hasClass('hasTimeEntry')) try { el.timeEntry();} catch(e) {};});
};
function web2py_ajax_init(target) {
jQuery('.hidden', target).hide();
jQuery('.error', target).hide().slideDown('slow');