Closed (fixed)
Project:
Panelizer (obsolete)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2013 at 16:36 UTC
Updated:
22 Feb 2015 at 18:54 UTC
Jump to comment: Most recent, Most recent file
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!