Hey!
I didn't have much time to investigate, but it seems that for some reason save button doesn't work on my foundation based theme. I tracked the problem down to homebox.js file, line 16 where the button mousedown element is defined.
I changed the line from
Drupal.homebox.$pageSave = $homebox.find('#homebox-save-form input[type=submit]');
to
Drupal.homebox.$pageSave = $homebox.find('#homebox-save-form button[type=submit]');
because that button wasn't firing at all.
I'm not sure if that input element was replaced by some override in foundation theme or what, but I solved this issue by patching my homebox.js in my profile file, and all is working atm.
Cheers,
Janne
Comment | File | Size | Author |
---|---|---|---|
#5 | homebox_save-button-not-fired-on-some-theme-2201955-5.patch | 586 bytes | AndrewsizZ |
#3 | issue-2201955-homebox-saves-in-bootstrap.patch | 598 bytes | D34dMan |
#1 | homeboxjs-btnvsinput.patch | 532 bytes | jiisuominen |
Comments
Comment #1
jiisuominen CreditAttribution: jiisuominen commentedComment #2
WillowDigit CreditAttribution: WillowDigit commentedI can confirm that I had the same issue on Bootstrap 3.x theme, and that patch #1 fixed it for me.
Comment #3
D34dMan CreditAttribution: D34dMan commentedPatching as with #1 works. but would break in other themes where it is working normally. So i modified the patch to make it better.
Comment #4
drummI think
'#homebox-save-form [type=submit]'
will work as a selector for both. If the button has a consistent ID, that would be even better.A code comment explaining the selector should be added.
Comment #5
AndrewsizZ CreditAttribution: AndrewsizZ commentedAttached new patch
Comment #7
drummLooks good, committed.