ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker JS hooks for after all fieldtype libraries have loaded

December 11, 2012 9:53am

Subscribe [1]
  • #1 / Dec 11, 2012 9:53am

    dehuszar

    99 posts

    I’m using a popular Equal Heights trick on a site, and so far it’s working really well with one exception.

    The site makes heavy use of safecracker forms and has many fieldtypes like Playa or Expresso which replace the field that gets measured onReady or onLoad with larger interface elements.  This is causing the initially equal columns to get out of alignment, pushing the middle column below/under the footer and making the submit button unreachable.

    I’ve poked around the dev docs, but I’m wondering whether there’s some JS hook I can target after all safecracker relevant libraries have been loaded to do another equal heights check.

    I’ve tried using Jquery Mutate to listen for any height changes to the fieldtype or column container, but they don’t seem to work.  If there’s an onSuccess-like event for loading the safecracker fieldtype libraries, that seems like it would be the best time to run that eval.

    Any ideas?

    Any help would be appreciated.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases