From 413a5f1dc25d5c8a788127f40816f39c49cd0d1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Sun, 23 Mar 2014 19:53:36 +0100 Subject: [PATCH 1/1] editor: refactoring - move dialog view implementation out of data module --- src/editor/modules/data/data.js | 2 +- src/editor/modules/data/data.less | 1 - src/editor/styles/main.less | 2 +- src/editor/{modules/data => views/dialog}/dialog.html | 0 src/editor/{modules/data => views/dialog}/dialog.js | 0 src/editor/{modules/data => views/dialog}/dialog.less | 0 .../{modules/data => views/dialog}/templates/checkbox.html | 0 src/editor/{modules/data => views/dialog}/templates/input.html | 0 src/editor/{modules/data => views/dialog}/templates/select.html | 0 .../{modules/data => views/dialog}/templates/textarea.html | 0 10 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 src/editor/modules/data/data.less rename src/editor/{modules/data => views/dialog}/dialog.html (100%) rename src/editor/{modules/data => views/dialog}/dialog.js (100%) rename src/editor/{modules/data => views/dialog}/dialog.less (100%) rename src/editor/{modules/data => views/dialog}/templates/checkbox.html (100%) rename src/editor/{modules/data => views/dialog}/templates/input.html (100%) rename src/editor/{modules/data => views/dialog}/templates/select.html (100%) rename src/editor/{modules/data => views/dialog}/templates/textarea.html (100%) diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index 42e46f8..3bb2c2c 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -1,6 +1,6 @@ define([ 'libs/jquery', - './dialog', + 'views/dialog/dialog', 'wlxml/wlxml', 'wlxml/extensions/list/list', 'fnpjs/logging/logging', diff --git a/src/editor/modules/data/data.less b/src/editor/modules/data/data.less deleted file mode 100644 index 2a21630..0000000 --- a/src/editor/modules/data/data.less +++ /dev/null @@ -1 +0,0 @@ -@import 'dialog.less'; \ No newline at end of file diff --git a/src/editor/styles/main.less b/src/editor/styles/main.less index 2792657..82bf8d5 100644 --- a/src/editor/styles/main.less +++ b/src/editor/styles/main.less @@ -3,7 +3,7 @@ @import 'common.less'; @import '../views/openSelect/openSelect.less'; -@import '../modules/data/data.less'; +@import '../views/dialog/dialog.less'; @import '../modules/rng/rng.less'; @import '../modules/documentCanvas/documentCanvas.less'; @import '../modules/sourceEditor/sourceEditor.less'; diff --git a/src/editor/modules/data/dialog.html b/src/editor/views/dialog/dialog.html similarity index 100% rename from src/editor/modules/data/dialog.html rename to src/editor/views/dialog/dialog.html diff --git a/src/editor/modules/data/dialog.js b/src/editor/views/dialog/dialog.js similarity index 100% rename from src/editor/modules/data/dialog.js rename to src/editor/views/dialog/dialog.js diff --git a/src/editor/modules/data/dialog.less b/src/editor/views/dialog/dialog.less similarity index 100% rename from src/editor/modules/data/dialog.less rename to src/editor/views/dialog/dialog.less diff --git a/src/editor/modules/data/templates/checkbox.html b/src/editor/views/dialog/templates/checkbox.html similarity index 100% rename from src/editor/modules/data/templates/checkbox.html rename to src/editor/views/dialog/templates/checkbox.html diff --git a/src/editor/modules/data/templates/input.html b/src/editor/views/dialog/templates/input.html similarity index 100% rename from src/editor/modules/data/templates/input.html rename to src/editor/views/dialog/templates/input.html diff --git a/src/editor/modules/data/templates/select.html b/src/editor/views/dialog/templates/select.html similarity index 100% rename from src/editor/modules/data/templates/select.html rename to src/editor/views/dialog/templates/select.html diff --git a/src/editor/modules/data/templates/textarea.html b/src/editor/views/dialog/templates/textarea.html similarity index 100% rename from src/editor/modules/data/templates/textarea.html rename to src/editor/views/dialog/templates/textarea.html -- 2.20.1