diff --git a/app/assets/javascripts/lib/modal-preview.js b/app/assets/javascripts/lib/modal-preview.js
index d3dd0c32..5a684fd5 100644
--- a/app/assets/javascripts/lib/modal-preview.js
+++ b/app/assets/javascripts/lib/modal-preview.js
@@ -1,13 +1,20 @@
$(function() {
$(".post_preview").click(function(){
$("#main-wrap").after("");
+
+ var preview_url = $(this).attr('url');
- $.post($(this).attr('url'), $(".previewable").serialize() ,function(data){
- $('#show_preview .modal').modal();
+ $("form.previewable").ajaxSubmit({
+ beforeSubmit: function(a,f,o){
+ o.dataType = 'script';
+ o.url = preview_url;
+ o.type = 'post';
+ },success: function(msg) {
+ $('#show_preview .modal').modal()
$('#show_preview .modal').height(function() {
return $(window).height() * 0.7;
});
- },'script');
+ }});
});
$(".preview_trigger").click(function(){
$("#main-wrap").after("");
@@ -38,10 +45,10 @@ $(function() {
// o.url = url.nodeValue;
// o.type = 'post';
// },success: function(msg) {
- // $('#show_preview .modal').modal()
- // $('#show_preview .modal').height(function() {
- // return $(window).height() * 0.7;
- // });
+ // $('#show_preview .modal').modal()
+ // $('#show_preview .modal').height(function() {
+ // return $(window).height() * 0.7;
+ // });
// }
// });
diff --git a/app/controllers/admin/sites_controller.rb b/app/controllers/admin/sites_controller.rb
index e4119661..7b0362e0 100644
--- a/app/controllers/admin/sites_controller.rb
+++ b/app/controllers/admin/sites_controller.rb
@@ -72,7 +72,10 @@ class Admin::SitesController < OrbitBackendController
end
def system_info
-
+ @disk_free = `df -h /`.gsub("\n","
").html_safe
+ @nginx_version = %x[/opt/nginx/sbin/nginx -v 2>&1].gsub("\n","
").html_safe
+ @mongo_version = `mongod --version`.split("\n")[0].html_safe
+ @linux_version = `lsb_release -d`.split(":")[1].html_safe
end
def search_engine
diff --git a/app/helpers/orbit_backend_helper.rb b/app/helpers/orbit_backend_helper.rb
index f9256fbb..702baf4b 100644
--- a/app/helpers/orbit_backend_helper.rb
+++ b/app/helpers/orbit_backend_helper.rb
@@ -433,6 +433,10 @@ module OrbitBackendHelper
res << "