From 8d1c274975ec842dd8ddc9f1bc64bcfcc1a350df Mon Sep 17 00:00:00 2001 From: Vitaly Baev Date: Wed, 14 Feb 2018 18:23:38 +0300 Subject: [PATCH] =?UTF-8?q?LIL-348=20-=20=D0=9F=D0=BE=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=87=D0=B5=D1=80=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=20=D0=BA=D1=83=D1=80=D1=81=D0=B0,=20LIL-243?= =?UTF-8?q?=20-=20=D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D1=81=D0=BE=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=BA=D1=83=D1=80=D1=81=D0=B0,=20LI?= =?UTF-8?q?L-242=20=D0=A3=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BE=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BA=D1=83=D1=80=D1=81=D0=B0,=20LI?= =?UTF-8?q?l-239?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/templates/lilcity/edit_index.html | 4 +- web/package-lock.json | 5 + web/package.json | 1 + web/src/components/CourseRedactor.vue | 111 ++++++++++++++++++---- web/src/js/course-redactor.js | 10 ++ web/src/js/modules/api.js | 7 ++ 6 files changed, 119 insertions(+), 19 deletions(-) diff --git a/project/templates/lilcity/edit_index.html b/project/templates/lilcity/edit_index.html index 8dae9b9a..b9dc4fea 100644 --- a/project/templates/lilcity/edit_index.html +++ b/project/templates/lilcity/edit_index.html @@ -46,13 +46,13 @@
-
СОХРАНЕНО
+
- +
{% if request.user.is_authenticated %}
diff --git a/web/package-lock.json b/web/package-lock.json index 98596c94..17fe64e6 100755 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -7041,6 +7041,11 @@ "lodash._bindcallback": "3.0.1" } }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" + }, "lodash.defaults": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", diff --git a/web/package.json b/web/package.json index b926a65a..ad25f0bd 100755 --- a/web/package.json +++ b/web/package.json @@ -58,6 +58,7 @@ "history": "^4.7.2", "ilyabirman-likely": "^2.3.0", "jquery": "^3.3.1", + "lodash.debounce": "^4.0.8", "moment": "^2.20.1", "owl.carousel": "^2.2.0", "slugify": "^1.2.9", diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index a29ca73e..981e1c18 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -1,5 +1,5 @@