From fdbdc17efe9604d11a88cc272655976f0ff77795 Mon Sep 17 00:00:00 2001 From: g8up Date: Tue, 9 Aug 2016 11:48:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Fix:=20=E9=A2=84=E8=A7=88=E9=A1=B5=20CSS=20?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E4=B8=8E=20JS=20=E8=B5=84=E6=BA=90=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98=20http://git.osch?= =?UTF-8?q?ina.net/oschina/RunJS/issues/8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RunJS/webapp/js/base1.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/RunJS/webapp/js/base1.js b/RunJS/webapp/js/base1.js index 15ac721..7c9151d 100644 --- a/RunJS/webapp/js/base1.js +++ b/RunJS/webapp/js/base1.js @@ -76,8 +76,10 @@ var RunJS = function(opt) { html = body[0]; temp = body.length == 2 && body[1] ? body[1] : ""; } - return html + "" - + "" + temp; + return html + + "" + + "" + + temp; } var resizeEditor = function() { @@ -1428,7 +1430,7 @@ var Controls = function(opt) { var hide = right.find("ul"); hide.removeClass("setting_on").addClass("setting_off"); show.removeClass("setting_off").addClass("setting_on"); - }); + }); }, setTheme : function(theme) { if (User.login) { @@ -2645,7 +2647,7 @@ var Controls = function(opt) { /* * //select显示 $(".select").find(".title").click(function() { var cur_ul = * $(this).parent().find("ul").toggle(); }) - * + * * $(".toolItem li").click(function() { $(this).parent().hide(); }); */ -- Gitee From f6d2b18eeeae627e85c0f22a74f4a99d5ad2d11b Mon Sep 17 00:00:00 2001 From: g8up Date: Tue, 9 Aug 2016 13:34:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Fix:=E8=B0=83=E6=95=B4=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=80=81=E9=A2=84=E8=A7=88=E9=A1=B5=E4=B8=AD=20CSS=20=E5=92=8C?= =?UTF-8?q?=20JS=20=E7=9A=84=E5=BC=95=E7=94=A8=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RunJS/webapp/js/editor.js | 54 +++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/RunJS/webapp/js/editor.js b/RunJS/webapp/js/editor.js index 4132811..73f4230 100644 --- a/RunJS/webapp/js/editor.js +++ b/RunJS/webapp/js/editor.js @@ -1,6 +1,6 @@ /** * 按视图划分,Editor负责编辑器视图的显示及操作 - * + * * @class Editor */ Editor = (function() { @@ -11,7 +11,7 @@ Editor = (function() { /** * 默认配置参数 - * + * * @attribute defaultParams * @private */ @@ -26,7 +26,7 @@ Editor = (function() { /** * 事件绑定规则定义,详情见 {{#crossLink "Utils"}}{{/crossLink}} 类中的 {{#crossLink * "Utils/binder"}}{{/crossLink}} 方法 - * + * * @property Events * @type {JSON} */ @@ -37,7 +37,7 @@ Editor = (function() { /** * 显示视图右上角快速工具条 - * + * * @method show_quick_tools */ PT.show_quick_tools = function() { @@ -46,7 +46,7 @@ Editor = (function() { /** * 隐藏视图右上角快速工具条 - * + * * @method hide_quick_tools */ PT.hide_quick_tools = function() { @@ -68,7 +68,7 @@ Editor = (function() { /** * 编辑器视图初始化 - * + * * @method initView * @param {String} * ident 代码唯一标识 @@ -94,7 +94,7 @@ Editor = (function() { /** * 选择JS编辑类型:JavaScript或CoffeeScript - * + * * @method chooseJsType */ PT.chooseJsType = function() { @@ -123,7 +123,7 @@ Editor = (function() { /** * 选择CSS编辑类型:CSS 或 LESS - * + * * @method chooseCssType */ PT.chooseCssType = function() { @@ -152,7 +152,7 @@ Editor = (function() { /** * 获取当前代码的MD5值 - * + * * @method codeMD5 */ PT.codeMD5 = function() { @@ -160,7 +160,7 @@ Editor = (function() { } /** * 给三个视图异步加载代码 - * + * * @method loadTemplate * @param {String} * ident 代码唯一标识,ident为空则加载默认模版代码,ident不为空则尝试加载用户的对应代码 @@ -184,7 +184,7 @@ Editor = (function() { /** * 加载插件模版代码 - * + * * @method loadPlugin * @param {String} * ident 代码唯一标识 @@ -206,7 +206,7 @@ Editor = (function() { /** * 加载插件模版代码 - * + * * @method loadPluginTpl * @param {String} * ident 代码唯一标识 @@ -222,7 +222,7 @@ Editor = (function() { /** * 检查并设置编辑器编辑状态 - * + * * @method setEditedStatus */ PT.setEditedStatus = function() { @@ -249,7 +249,7 @@ Editor = (function() { /** * 移除编辑状态 - * + * * @method removeEditedStatus */ PT.removeEditedStatus = function() { @@ -260,7 +260,7 @@ Editor = (function() { /** * 以同步方式加载模版代码 - * + * * @method getRemoteCode * @param {String} * ident 代码唯一标识 @@ -274,7 +274,7 @@ Editor = (function() { /** * 从远程加载代码片段,如果ident为空,则加载模版代码片段 - * + * * @method loadTplSnippet * @param {String} * ident 代码唯一标识 @@ -316,7 +316,7 @@ Editor = (function() { /** * 获取当前编辑器内textarea代码 - * + * * @method getCodeOfView * @param {Object} * view 视图选择器 @@ -331,7 +331,7 @@ Editor = (function() { /** * 初始化CodeMirror - * + * * @method initCodeMirror * @param {Object} * view 视图选择器 @@ -440,7 +440,7 @@ Editor = (function() { /** * 获取CodeMirro编辑器代码 - * + * * @method getEditorCode * @param {String} * type 编辑器类型 'html'|'css'|'js' @@ -464,7 +464,7 @@ Editor = (function() { /** * 获取HTML+JS+CSS组合过后的最终页面代码,用于在预览视图中实时显示 - * + * * @method getCombinedHtml */ PT.getCombinedHtml = function() { @@ -496,12 +496,12 @@ Editor = (function() { } catch (e) { return buildString(html, "", temp); } - return buildString(html, "", "", temp); + return buildString(html, "", "", temp); } /** * 更新视图的定时器实例,用来实现延时更新 - * + * * @attribute update_delay * @private */ @@ -509,7 +509,7 @@ Editor = (function() { /** * 更新预览视图的内容 - * + * * @method updatePreview * @param {String} * chtml 组合过后的HTML+CSS+JS代码 @@ -544,7 +544,7 @@ Editor = (function() { /** * 获取默认代码 - * + * * @method getDefaultEditorValue * @param {String} * type 代码类型 'html'|'css'|'js' @@ -555,7 +555,7 @@ Editor = (function() { /** * 根据全局变量 Setting 中的theme属性设置主题,当前只是 default 和 night两种主题 - * + * * @method setTheme */ PT.setTheme = function() { @@ -572,7 +572,7 @@ Editor = (function() { /** * 设置CodeMirror字体,根据全局变量 Setting 中的fontfamily和fontsize属性设置字体 - * + * * @method setCMFont */ PT.setCMFont = function() { @@ -604,7 +604,7 @@ Editor = (function() { /** * 刷新编辑器,当编辑器外观或大小被改变时调用 - * + * * @method refreshEditors */ PT.refreshEditors = function() { -- Gitee