1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Enhance share feature with modal dialog choices

Add Facebook / Twitter / GooglePlus external share plugins
This commit is contained in:
Afterster 2014-11-15 06:05:41 +01:00
parent 53f12cf2b2
commit 80cde0c626
23 changed files with 478 additions and 12 deletions

View file

@ -39,7 +39,7 @@ $(function() {
$("body").delegate("a", "click", function() {
var link = $(this).attr("href");
if (link != "" && link.indexOf("javascript:") != 0 && link != "#" && link != undefined && $(this).attr("onclick") == undefined && $(this).attr("rel") != "nohtml" && $(this).attr("target") != "_blank") {
if (link !== undefined && link != "" && link.indexOf("javascript:") != 0 && link != "#" && link != undefined && $(this).attr("onclick") == undefined && $(this).attr("rel") != "nohtml" && $(this).attr("target") != "_blank") {
if ($(this).attr("rel") != "prettyPhoto") {
// Ajax load Ampache pages only
if (link.indexOf(jsWebPath) > -1) {