Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from elemis/master
Browse files Browse the repository at this point in the history
Callback function after html generation
  • Loading branch information
kasperlegarth authored Nov 26, 2019
2 parents b4b0eec + 77a5a0c commit ae3448a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion instastory.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
imageSize : 150,
limit : 6,
link : true,
template : ""
template : "",
after : function(){}
}, userSettings);

if(!$container.length) {
Expand Down Expand Up @@ -150,6 +151,7 @@
url: searchUrl,
success: function(data) {
$container.html(generateHtml(data.graphql[settings.type]));
settings.after();
}
}).fail(function(data) {
switch(data.status) {
Expand Down

0 comments on commit ae3448a

Please sign in to comment.