Using panoply-dev. Tried using -dev version of this, no change
Anyhow, when trying to save a default for a node type from a node of that type, I get this
This will save this configuration as the new default for all entities of this type. This action cannot be undone. Are you sure?
About 5 times before it actually saves.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | panelizer-n1982654-9.patch | 1.45 KB | damienmckenna |
Comments
Comment #1
gmclelland commentedI was getting the same thing until I disabled the http://drupal.org/project/entitycache module. I'm not sure what is causing the problem.
Hopefully that helps provide more information.
Comment #2
hefox commentednot using that
This is a bandaid patch. Something is calling attach way more than once on #panelizer-save-default. When removing a pane, problem doens't happen, but when editing or adding a new one, bam, tonnns of re-attachments.
Comment #3
hefox commentedComment #4
dagomar commentedI am under the impression that each action creates an extra confirmation message.
By the way, the patch works.
Comment #5
damienmckennaI think it'd be worth having someone with good JS chops taking a look at this - there doesn't seem to be any point in adding a bandaid for the problem when there's a root issue of the JS being executed too many times.
Comment #6
mglamanDrupal provides the .once() plugin for this purpose, so we don't have to run on attach and detach. It works by taking the first argument as a class name. Once this has run it adds CLASSNAME-processed to element to prevent multiple binds.
Comment #9
damienmckennaRerolled.
Comment #11
damienmckennaCommitted. Thank you both!