$(document).ready(function () {
// Connect to any elements that have 'data-pdsa-action'
$("[data-pdsa-action]").on("click", function (e) {
// Fill in hidden fields with action and argument to post back to model
$("#EventCommand").val($(this).attr("data-pdsa-action"));
$("#EventArgument").val($(this).attr("data-pdsa-val"));
// Submit form with hidden values filled in
$("form").submit();
});
//$.ajaxSetup({ cache: true });
$('#shareBtn, #shareBtn2').onclick = function (e) {
FB.ui({
method: 'share',
mobile_iframe: true,
href: $("#WebsiteURL").val(),
caption: $("#FacebookTitle").val(),
picture: $("#ImagePath").val(),
description: $("#FacebookText").val(),
}, function (response) { });
}
$("[data-modal-action]").on("click", function (e) {
// Fill in hidden fields with action and argument to post back to model
//var id = $(this).attr("data-id");
//alert(id);
//$("#NewParentId").val(id);
$('#comment-Modal').modal('show');
});
//var bookmark = $("#BookMark").val();
//if (bookmark != "") {
// window.location.href = "#" + bookmark;
//}
});
function ShowModal(id) {
$('#comment-Modal').modal('show');
}