mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #1322 class attributes must be defined in contructor
This commit is contained in:
@@ -142,10 +142,12 @@ $('.search-input').on('input', function() {
|
|||||||
|
|
||||||
// Class to implement a temporary state and reverse it
|
// Class to implement a temporary state and reverse it
|
||||||
class TemporaryState {
|
class TemporaryState {
|
||||||
//Arrays to reverse changes
|
constructor() {
|
||||||
attrChanges = []; //Attribute changes : {object(s), attribute, value}
|
//Arrays to reverse changes
|
||||||
classChanges = []; //Class changes : {object(s), state(add:true/remove:false), class}
|
this.attrChanges = []; //Attribute changes : {object(s), attribute, value}
|
||||||
htmlChanges = []; //Html changes : {object(s), html}
|
this.classChanges = []; //Class changes : {object(s), state(add:true/remove:false), class}
|
||||||
|
this.htmlChanges = []; //Html changes : {object(s), html}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change temporaly an attribute of an object
|
* Change temporaly an attribute of an object
|
||||||
|
|||||||
Reference in New Issue
Block a user