diff --git a/Admin/Update.php b/Admin/Update.php index 5c1eadd..82771f8 100644 --- a/Admin/Update.php +++ b/Admin/Update.php @@ -19,7 +19,6 @@ use phpOMS\Module\UpdateAbstract; use phpOMS\System\File\Directory; use phpOMS\Module\InfoManager; - /** * Navigation class. * diff --git a/Controller.js b/Controller.js index 0ae8b82..6c1a1c0 100644 --- a/Controller.js +++ b/Controller.js @@ -6,13 +6,13 @@ jsOMS.Modules.Editor = function(app) { - this.app = app; + this.app = app; this.editors = {}; }; jsOMS.Modules.Editor.prototype.bind = function(id) { - const e = typeof id === 'undefined' ? document.getElementsByClassName('m-editor') : [document.getElementById(id)], + const e = typeof id === 'undefined' ? document.getElementsByClassName('m-editor') : [document.getElementById(id)], length = e.length; for(let i = 0; i < length; i++) { diff --git a/Controller.php b/Controller.php index 5d19ab3..cd1c4ca 100644 --- a/Controller.php +++ b/Controller.php @@ -183,7 +183,7 @@ class Controller extends ModuleAbstract implements WebInterface { $view = new View($this->app, $request, $response); - $doc = EditorDocMapper::get((int) $request->getData('id')); + $doc = EditorDocMapper::get((int) $request->getData('id')); $accountId = $request->getHeader()->getAccount(); if ($doc->getCreatedBy()->getId() !== $accountId @@ -205,8 +205,7 @@ class Controller extends ModuleAbstract implements WebInterface private function validateEditorCreate(RequestAbstract $request) : array { $val = []; - if ( - ($val['title'] = empty($request->getData('title'))) + if (($val['title'] = empty($request->getData('title'))) || ($val['plain'] = empty($request->getData('plain'))) ) { return $val; diff --git a/Theme/Backend/Components/Editor/BaseView.php b/Theme/Backend/Components/Editor/BaseView.php index cc143d2..9a3734d 100644 --- a/Theme/Backend/Components/Editor/BaseView.php +++ b/Theme/Backend/Components/Editor/BaseView.php @@ -42,4 +42,4 @@ class BaseView extends View $this->id = $data[0]; return parent::render(); } -} \ No newline at end of file +} diff --git a/Theme/Backend/Components/Editor/TextView.php b/Theme/Backend/Components/Editor/TextView.php index 8987c2e..16ea278 100644 --- a/Theme/Backend/Components/Editor/TextView.php +++ b/Theme/Backend/Components/Editor/TextView.php @@ -39,4 +39,4 @@ class TextView extends View $this->id = $data[0]; return parent::render(); } -} \ No newline at end of file +}