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