From d6afb06b5c8eb13683bfe9f770c4460af140ab31 Mon Sep 17 00:00:00 2001 From: Atef Ben Ali Date: Sun, 19 Mar 2017 11:12:57 +0100 Subject: [PATCH] format the code --- myscript.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/myscript.js b/myscript.js index c527466..ca495fe 100644 --- a/myscript.js +++ b/myscript.js @@ -1,17 +1,17 @@ - -function switchRTL(){ +function switchRTL() { //switch the preview var objBody = jQuery(".markdown-body"); - if(objBody.length){ + if(objBody.length) + { objBody.css("direction","rtl"); objBody.find("pre").css("direction","ltr"); } //switch the editor var objEditor = jQuery(".ace_editor"); - if(objEditor.length){ - + if(objEditor.length) + { objEditor.css("direction","rtl"); jQuery("textarea.ace_text-input").css("direction","rtl"); jQuery(".atom-text-editor").css("direction","rtl"); @@ -22,7 +22,6 @@ function switchRTL(){ }); } - } -switchRTL(); \ No newline at end of file +switchRTL();