mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Set humanejs info & error function
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
(function() {
|
||||
|
||||
$(document).ready(function() {
|
||||
humane.info = humane.spawn({addnCls: 'humane-libnotify-info', timeout: 1000});
|
||||
humane.error = humane.spawn({addnCls: 'humane-libnotify-error', timeout: 1000});
|
||||
|
||||
$('a.dialog').live('click', function(event) {
|
||||
|
||||
var $this = $(this), size = 'Medium';
|
||||
|
||||
if($this.hasClass('small-dialog'))
|
||||
{
|
||||
if ($this.hasClass('small-dialog')) {
|
||||
size = 'Small';
|
||||
}
|
||||
else if($this.hasClass('full-dialog'))
|
||||
{
|
||||
} else if ($this.hasClass('full-dialog')) {
|
||||
size = 'Full';
|
||||
}
|
||||
|
||||
@@ -28,9 +25,6 @@
|
||||
type: "GET",
|
||||
url: $this.attr('href'),
|
||||
dataType: 'html',
|
||||
beforeSend:function(){
|
||||
|
||||
},
|
||||
success: function(data) {
|
||||
$dialog.setContent(data);
|
||||
return;
|
||||
@@ -39,7 +33,5 @@
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}())
|
||||
}());
|
Reference in New Issue
Block a user