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).

Comments

markfoodyburton’s picture

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

Sorry!

Cheers

Mark.

zmove’s picture

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.

markfoodyburton’s picture

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.

MBroberg’s picture

I just uploaded the newest stable release of both modules and I am getting the same "first occurrence" error. Only the first occurrence of a node displays on the calendar. (All nodes display when I choose a different format)

jhedstrom’s picture

From what I can tell, the issue here is that a view with multiple editable date fields has all the IDs set the same (which are supposed to be unique), so the popup only works on the first one. For example, for a field called field_task_date, all IDs are set to "edit-field-task-date-0-value-datepicker-popup-0".

btopro’s picture

correct. it's a conflict of unique ids. I'm currently using this with the "click to open" rendering without issue. I also added a minor line of jquery to not focus on date input fields by default. That way when you click on it the calendar pops up (if it's already selected you have to unfocus then focus again)

joelpittet’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this to triage the queue. Feel free to comment if you'd like this to be re-opened, though currently there is nobody supporting the 6.x branch.