feat: add event functions to init and load
This commit is contained in:
parent
42a4205756
commit
d0dcc69dc0
|
|
@ -28,6 +28,10 @@ var tarteaucitron = {
|
||||||
"parameters": {},
|
"parameters": {},
|
||||||
"isAjax": false,
|
"isAjax": false,
|
||||||
"reloadThePage": false,
|
"reloadThePage": false,
|
||||||
|
"events": {
|
||||||
|
"init": function () {},
|
||||||
|
"load": function () {},
|
||||||
|
},
|
||||||
"init": function (params) {
|
"init": function (params) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var origOpen;
|
var origOpen;
|
||||||
|
|
@ -190,6 +194,10 @@ var tarteaucitron = {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(tarteaucitron.events.init) {
|
||||||
|
tarteaucitron.events.init();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"load": function () {
|
"load": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
@ -481,6 +489,10 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(tarteaucitron.events.load) {
|
||||||
|
tarteaucitron.events.load();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"addService": function (serviceId) {
|
"addService": function (serviceId) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue