SlideShare una empresa de Scribd logo
1 de 1
$(".j-linkedin-connect").on("click", function(evt){
evt.preventDefault();
var slideshow_id = $(this).data("slide-id")
bootbox.confirm("Are you sure you want to add this slideshow to your
LinkedIn Profile?", function(confirmed) {
if (confirmed){
$.ajax({
url : "/liconnect/upload_to_li_profile_connected_user",
data : {"slideshow_id" : slideshow_id },
type: "POST",
dataType: "json",
success : function(data){
if(data.success){
var actionBtn = $("#li_upload_" + slideshow_id).text("Added To
LI Profile");
actionBtn.removeClass("j-linkedin-connect");
actionBtn.addClass("disabled");
bootbox.alert("Added upload to LinkedIn Profile");
} else {
bootbox.alert("Oops! There was an error. Please try again
later.");
}
},
failure : function(){
bootbox.alert("Oops! There was an error. Please try again
later.");
}
});
}
});
});

Más contenido relacionado

Similar a Empty

Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoRob Bontekoe
 
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...QAFest
 
https://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tshttps://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tsArif Alexi
 
Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9Jack Franklin
 
Yes, browsers can do that! Hybrid and future web meetup at Jayway
Yes, browsers can do that! Hybrid and future web meetup at JaywayYes, browsers can do that! Hybrid and future web meetup at Jayway
Yes, browsers can do that! Hybrid and future web meetup at JaywayChristian Heilmann
 
HTML5 and Mobile
HTML5 and MobileHTML5 and Mobile
HTML5 and Mobiledoodoofish
 
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Nico Miceli
 
Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Kunal Mittal
 
Big Data for each one of us
Big Data for each one of usBig Data for each one of us
Big Data for each one of usOSCON Byrum
 
Before there was Hoop Dreams, there was McDonald's: Strange and Beautiful
Before there was Hoop Dreams, there was McDonald's: Strange and BeautifulBefore there was Hoop Dreams, there was McDonald's: Strange and Beautiful
Before there was Hoop Dreams, there was McDonald's: Strange and Beautifulchicagonewsonlineradio
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC Newsspiritualvictim28
 
Building Large jQuery Applications
Building Large jQuery ApplicationsBuilding Large jQuery Applications
Building Large jQuery ApplicationsRebecca Murphey
 
Guia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceGuia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceLeonardo Balter
 
Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Thai Pangsakulyanont
 
From 0 to Spring Security 4.0
From 0 to Spring Security 4.0From 0 to Spring Security 4.0
From 0 to Spring Security 4.0robwinch
 
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than play
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than playRushed to Victory Gardens' stage, An Issue of Blood is more effusion than play
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than playchicagonewsyesterday
 
Crossing platforms with JavaScript & React
Crossing platforms with JavaScript & React Crossing platforms with JavaScript & React
Crossing platforms with JavaScript & React Robert DeLuca
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoChris Scott
 

Similar a Empty (20)

Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
 
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...
QA Fest 2017. Ярослав Святкин. Тестовый фреймворк GEB для тестирования WEB пр...
 
Geb qa fest2017
Geb qa fest2017Geb qa fest2017
Geb qa fest2017
 
https://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=tshttps://www.facebook.com/valdyna.monna?fref=ts
https://www.facebook.com/valdyna.monna?fref=ts
 
Discontinuing Reader Matches
Discontinuing Reader MatchesDiscontinuing Reader Matches
Discontinuing Reader Matches
 
Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9Introduction to jQuery - Barcamp London 9
Introduction to jQuery - Barcamp London 9
 
Yes, browsers can do that! Hybrid and future web meetup at Jayway
Yes, browsers can do that! Hybrid and future web meetup at JaywayYes, browsers can do that! Hybrid and future web meetup at Jayway
Yes, browsers can do that! Hybrid and future web meetup at Jayway
 
HTML5 and Mobile
HTML5 and MobileHTML5 and Mobile
HTML5 and Mobile
 
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up
Some Advanced Tracking in Google Analytics in 5 mins - PhillyJS meet up
 
Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3Hi5 opensocial-code-lab-presentation-1203814696810018-3
Hi5 opensocial-code-lab-presentation-1203814696810018-3
 
Big Data for each one of us
Big Data for each one of usBig Data for each one of us
Big Data for each one of us
 
Before there was Hoop Dreams, there was McDonald's: Strange and Beautiful
Before there was Hoop Dreams, there was McDonald's: Strange and BeautifulBefore there was Hoop Dreams, there was McDonald's: Strange and Beautiful
Before there was Hoop Dreams, there was McDonald's: Strange and Beautiful
 
Technology and Science News - ABC News
Technology and Science News - ABC NewsTechnology and Science News - ABC News
Technology and Science News - ABC News
 
Building Large jQuery Applications
Building Large jQuery ApplicationsBuilding Large jQuery Applications
Building Large jQuery Applications
 
Guia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceGuia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open Source
 
Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2
 
From 0 to Spring Security 4.0
From 0 to Spring Security 4.0From 0 to Spring Security 4.0
From 0 to Spring Security 4.0
 
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than play
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than playRushed to Victory Gardens' stage, An Issue of Blood is more effusion than play
Rushed to Victory Gardens' stage, An Issue of Blood is more effusion than play
 
Crossing platforms with JavaScript & React
Crossing platforms with JavaScript & React Crossing platforms with JavaScript & React
Crossing platforms with JavaScript & React
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
 

Más de <svg> \">

4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02
4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp024thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02
4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02<svg> \">
 
Https set up
Https set upHttps set up
Https set up<svg> \">
 
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01Studiodrad designhubworkshop-tokyo-140316055155-phpapp01
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01<svg> \">
 
Pptwithlinks
PptwithlinksPptwithlinks
Pptwithlinks<svg> \">
 

Más de <svg> \"> (7)

111111
111111111111
111111
 
4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02
4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp024thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02
4thingsyouradagencyissecretlydyingtotellyou-140122041940-phpapp02
 
Https set up
Https set upHttps set up
Https set up
 
Li conn
Li connLi conn
Li conn
 
Xmas 2012
Xmas 2012Xmas 2012
Xmas 2012
 
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01Studiodrad designhubworkshop-tokyo-140316055155-phpapp01
Studiodrad designhubworkshop-tokyo-140316055155-phpapp01
 
Pptwithlinks
PptwithlinksPptwithlinks
Pptwithlinks
 

Empty

  • 1. $(".j-linkedin-connect").on("click", function(evt){ evt.preventDefault(); var slideshow_id = $(this).data("slide-id") bootbox.confirm("Are you sure you want to add this slideshow to your LinkedIn Profile?", function(confirmed) { if (confirmed){ $.ajax({ url : "/liconnect/upload_to_li_profile_connected_user", data : {"slideshow_id" : slideshow_id }, type: "POST", dataType: "json", success : function(data){ if(data.success){ var actionBtn = $("#li_upload_" + slideshow_id).text("Added To LI Profile"); actionBtn.removeClass("j-linkedin-connect"); actionBtn.addClass("disabled"); bootbox.alert("Added upload to LinkedIn Profile"); } else { bootbox.alert("Oops! There was an error. Please try again later."); } }, failure : function(){ bootbox.alert("Oops! There was an error. Please try again later."); } }); } }); });