Skip to content
Snippets Groups Projects
Commit 5c4c335a authored by gloas's avatar gloas
Browse files

Skin: modification popup avis par dialog jquerry

parent 41e78683
Branches
Tags
No related merge requests found
......@@ -131,12 +131,15 @@ class Class_ScriptLoader {
public function loadPrettyPhoto() {
return $this
->addStyleSheet(URL_ADMIN_JS.'prettyphoto/css/prettyPhoto')
->addAdminScript('prettyphoto/js/jquery.prettyPhoto')
->addJQueryReady('var new_pretty_photo_tags = $("a[data-prettyphoto=\'true\']");'.
'new_pretty_photo_tags.each(function(){$(this).attr("rel", $(this).attr("data-rel"));});'.
'$("a[rel^=\'prettyPhoto\']").add(new_pretty_photo_tags).prettyPhoto({opacity: 0.20, social_tools: ""})');
->addAdminScript('prettyphoto/js/jquery.prettyPhoto');
}
/**
->addJQueryReady('var new_pretty_photo_tags = $("a[data-prettyphoto=\'true\']");'.
'new_pretty_photo_tags.each(function(){$(this).attr("rel", $(this).attr("data-rel"));});'.
'$("a[rel^=\'prettyPhoto\']").add(new_pretty_photo_tags).prettyPhoto({opacity: 0.20, social_tools: ""})');
*/
/**
* @return ScriptLoader
......
......@@ -61,6 +61,16 @@ function noticeMurTooltip(item) {
event.preventDefault();
noticeMurPanier($(this));
});
$(item).find('a[href*="noticeajax/avis-abonne/"]').click(function(event){
event.preventDefault();
noticeMurAvis($(this).attr("href"),'avis-abonne');
});
$(item).find('a[href*="noticeajax/avis-bibliothecaire/"]').click(function(event){
event.preventDefault();
noticeMurAvis($(this).attr("href"), 'avis-bibliothecaire');
});
}
function noticeMurPanier(anchor) {
......@@ -69,6 +79,27 @@ function noticeMurPanier(anchor) {
});
}
function noticeMurAvis(url, class_css) {
var iframe = $('<iframe></iframe>');
var dialog = $("<div></div>").append(iframe).appendTo("body").dialog({
autoOpen: false,
modal: true,
resizable: false,
width: '500',
height: '400',
title: '',
dialogClass: 'avis-dialog',
close: function () {
iframe.attr("src", "");
}
});
iframe.attr({src:url});
dialog.dialog("open");
}
function noticeMurPanierWithData(data, anchor){
if ('AUTH' == data['result']) {
opacShowModal(data['redirect'], 500, 345, function(event, ui){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment