--- a/web/static/js/projectscontents.js Tue Sep 21 09:38:45 2010 +0200
+++ b/web/static/js/projectscontents.js Tue Sep 21 13:06:17 2010 +0200
@@ -168,6 +168,28 @@
});
}
});
+
+ $('.contenttitlelink').nyroModal({
+ type: 'iframe',
+ forceType: 'iframe',
+ height:500,
+ width:765,
+ bgColor: 'rgb(239, 239, 239)',
+ padding: 5,
+ titleFromIframe: false,
+ endRemove: function(elts, settings) {
+ searchCallback($("#searchcontentsinput"),"#contentslistcontainer",content_filter_url)
+ },
+ endShowContent: function(elts, settings) {
+ $('#nyroModalIframe', elts.content).load(function() {
+ var form_status = $(this).contents().find("#content_form_status").val();
+ if(form_status == 'saved') {
+ $.nyroModalRemove();
+ }
+ });
+ }
+ });
+
}