mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-03 15:34:00 +00:00
Changed FB share to iframe (avoid popup blockers)
This commit is contained in:
@@ -31,7 +31,7 @@ define ['jquery', 'utils', 'facebook'], ($, utils) ->
|
||||
FB.ui
|
||||
method: "feed"
|
||||
name: "Check out this mix on Deep South Sounds"
|
||||
display: "popup"
|
||||
display: "iframe"
|
||||
link: "http://" + window.location.host + "/" + model.get("item_url")
|
||||
picture: com.podnoms.settings.staticUrl + model.get("mix_image")
|
||||
caption: model.get("title")
|
||||
@@ -39,8 +39,6 @@ define ['jquery', 'utils', 'facebook'], ($, utils) ->
|
||||
, (response) ->
|
||||
if response and response.post_id
|
||||
utils.showAlert "Success", "Post shared to facebook"
|
||||
else
|
||||
utils.showError "Error", "Failure sharing post"
|
||||
else
|
||||
utils.showError "Error", "Failure sharing post"
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
return FB.ui({
|
||||
method: "feed",
|
||||
name: "Check out this mix on Deep South Sounds",
|
||||
display: "popup",
|
||||
display: "iframe",
|
||||
link: "http://" + window.location.host + "/" + model.get("item_url"),
|
||||
picture: com.podnoms.settings.staticUrl + model.get("mix_image"),
|
||||
caption: model.get("title"),
|
||||
@@ -36,8 +36,6 @@
|
||||
}, function(response) {
|
||||
if (response && response.post_id) {
|
||||
return utils.showAlert("Success", "Post shared to facebook");
|
||||
} else {
|
||||
return utils.showError("Error", "Failure sharing post");
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user