Merge pull request #220 from rgaborieau/ft_add_event

feat: add event functions to init and load
This commit is contained in:
Amauri CHAMPEAUX 2018-09-14 14:35:51 +02:00 committed by GitHub
commit 306717f36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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";