From 4d83fd4238e177d9327c760a5386bc53f25dedbb Mon Sep 17 00:00:00 2001 From: Michael Li Date: Mon, 17 Feb 2020 22:48:24 +0800 Subject: Use go-bindata to embed `public` and `templates` files into binary (#5920) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fixed private repositories are hidden in the organization's view * use go-bindata integrate public and templates files to gogs binary * optimize Dockerfile don't COPY public and templates files * use kevinburke's go-bindata to generate assets code * reset develepment as default run mode in configure file * optimize generated assets code relayout and help function * fixed code format * Update conf/app.ini * assets: add LICENSE headers * Some housekeeping * assets/public: simplify code logic * assets/templates: simplify code logic * cmd/web: more concise variable names * Minor changes * Add custom public and templates support back Co-authored-by: ᴜɴᴋɴᴡᴏɴ --- public/js/gogs.js | 1 - 1 file changed, 1 deletion(-) (limited to 'public/js') diff --git a/public/js/gogs.js b/public/js/gogs.js index e68ad8f1..b7b30cb4 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -40,7 +40,6 @@ function initEditPreviewTab($form) { var $this = $(this); $.post($this.data('url'), { "_csrf": csrf, - "mode": "gfm", "context": $this.data('context'), "text": $form.find('.tab.segment[data-tab="' + $tabMenu.data('write') + '"] textarea').val() }, -- cgit v1.2.3