From eb2f7e5e56a00f69a13722cc4297a6d6a61bd00f Mon Sep 17 00:00:00 2001
From: Anika Henke <anika@selfthinker.org>
Date: Tue, 27 Dec 2011 11:26:02 +0000
Subject: [PATCH] fixed no align option in media settings modal window
 (FS#2411)

---
 lib/scripts/media.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/scripts/media.js b/lib/scripts/media.js
index 267e64a76..c74633523 100644
--- a/lib/scripts/media.js
+++ b/lib/scripts/media.js
@@ -253,8 +253,10 @@ var dw_mediamanager = {
                         }
                     }
                 }
-                alignleft = dw_mediamanager.align === '2' ? '' : ' ';
-                alignright = dw_mediamanager.align === '4' ? '' : ' ';
+                if (dw_mediamanager.align !== '1') {
+                    alignleft = dw_mediamanager.align === '2' ? '' : ' ';
+                    alignright = dw_mediamanager.align === '4' ? '' : ' ';
+                }
             }
         }
         edid = String.prototype.match.call(document.location, /&edid=([^&]+)/);
-- 
GitLab