Newer
Older
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
Dan Hansen
a validé
Diaspora.Alert = {
faceboxTemplate:
'<div id="diaspora_alert">' +
'<div class="span-12 last">' +
danielgrippi
a validé
'<div id="facebox_header">' +
'<h4>' +
'<%= title %>' +
'</h4>' +
'</div>' +
'<%= content %>' +
Dan Hansen
a validé
'</div>' +
'</div>',
show: function(title, content) {
$(_.template(this.faceboxTemplate)({
Dan Hansen
a validé
title: title,
danielgrippi
a validé
content: content
Dan Hansen
a validé
})).appendTo(document.body);
$.facebox({
div: "#diaspora_alert"
}, "diaspora_alert");
}
};
$(function() {
$(document).bind("close.facebox", function() {
$("#diaspora_alert").remove();
});
danielgrippi
a validé
});