Skip to content

Commit

Permalink
api dynamic event ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Richter committed Oct 12, 2014
1 parent 6014e98 commit 7fcfa07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,12 @@ $(document).ready(function() {
$(".soupis tr td:nth-child(5)").hide();

var pusher = new Pusher("e3a617372cf7087256f0");
var stamp = pusher.sessionID;

$(document).ajaxStart(function()
{
var channel = pusher.subscribe('titulky-api');
channel.bind('my-event', function(response)
channel.bind(stamp, function(response)
{
var ratingBg = "plus-rating-blue";
if (response.data.csfd_r == 0)
Expand Down Expand Up @@ -331,7 +333,7 @@ $(document).ready(function() {
});
});

$.getJSON("http://79.143.181.180/titulky/",{multi: true, imdb: imdbs.join()},function(data){
$.getJSON("http://79.143.181.180/titulky/",{multi: true, imdb: imdbs.join(),stamp:stamp},function(data){
// console.log(data);
pusher.disconnect();

Expand Down

0 comments on commit 7fcfa07

Please sign in to comment.