Editable Date Pop-up field only works on first occurance

btopro - February 5, 2009 - 19:36
Project:editablefields
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Not sure if this should go here or in ajax_load or in the Date pop-up project so I'll start here... If you have a view with a list of date values that work via the javascript pop-up box it doesn't work after the first occurance. My guess is that the name space of field_date[0][value][date] is used on the first one and that the javascript code to apply the popup doesn't like that every field generated has that name.

The javascript glitch also happens on the time field which should jump you from value to value. Changing values manually on the non-pop up covered time fields seems to submit the wrong time (as the js wasn't applied correctly initially).

#1

markfoodyburton - February 5, 2009 - 20:59

Not sure what I can do about it though... maybe ask in ajax_load?

Sorry!

Cheers

Mark.

#2

zmove - April 3, 2009 - 06:39

Hi, I noticed some problems with date popup module.

I don't know too if the issue is for editable fields, date, or ajax load. It's related to the focus instruction when you have a date containing hours selections. There is a javascript focus instruction in the date_popup javascript file. If you comment it it works better.

          case 'timeEntry':
           /* $(this)
              .timeEntry(datePopup.settings)
              .addClass('date-popup-init')
              .focus();
            break;*/

But the javascript stuff for the hours input will not work anymore, so this is a dirty fix. In addition it alter the core date popup javascript file...

But this is not the only problem, For example, when you have a start date field with a start and end date. If you want to show only the start date in a view column for example and you want to provide it as an editable field, it will show the whole date form (with start and end date). I think the editable field module should take care of the option you choose in the view to only show one of the field. ATM you can fix it by adding a display:none to the fields you don't want to see, but it's dirty and not applicable for people that disable CSS styles.

#3

markfoodyburton - April 6, 2009 - 06:49

Date's are working for me... Are you using the latest versions? The problem was fixed between this module and Ajax_load.

For the 'only view 1/2 of a date form' - sorry - thats not this modules business - this module displays the form elements input block - whatever that looks like. You need to find a way of changing that to your requirements, before this module tries to display it.... Hope that makes sense?

Cheers

Mark.

 
 

Drupal is a registered trademark of Dries Buytaert.