diff --git a/application/classes/actions/ActionProfile.class.php b/application/classes/actions/ActionProfile.class.php index 33ab86fa..7b240b08 100644 --- a/application/classes/actions/ActionProfile.class.php +++ b/application/classes/actions/ActionProfile.class.php @@ -576,7 +576,7 @@ class ActionProfile extends Action * Создаем заметку и проводим валидацию */ $oNote = Engine::GetEntity('ModuleUser_EntityNote'); - $oNote->setTargetUserId(getRequestStr('iUserId')); + $oNote->setTargetUserId(getRequestStr('user_id')); $oNote->setUserId($this->oUserCurrent->getId()); $oNote->setText(getRequestStr('text')); @@ -608,7 +608,7 @@ class ActionProfile extends Action return $this->EventErrorDebug(); } - if (!($oUserTarget = $this->User_GetUserById(getRequestStr('iUserId')))) { + if (!($oUserTarget = $this->User_GetUserById(getRequestStr('user_id')))) { return $this->EventErrorDebug(); } if (!($oNote = $this->User_GetUserNote($oUserTarget->getId(), $this->oUserCurrent->getId()))) { diff --git a/application/frontend/components/feed/blogs.tpl b/application/frontend/components/feed/blogs.tpl index 0f097924..5c5838a7 100644 --- a/application/frontend/components/feed/blogs.tpl +++ b/application/frontend/components/feed/blogs.tpl @@ -6,7 +6,7 @@ *} {if $oUserCurrent} -
diff --git a/application/frontend/components/note/css/note.css b/application/frontend/components/note/css/note.css index ff737889..b7000ee6 100644 --- a/application/frontend/components/note/css/note.css +++ b/application/frontend/components/note/css/note.css @@ -2,51 +2,51 @@ * Заметка */ -.user-note { +.ls-note { background: #F1F7AF; padding: 20px 20px 18px; margin-bottom: 15px; border-radius: 5px; box-shadow: 0 1px 0 #DBE28B; } -.user-note:last-child { +.ls-note:last-child { margin-bottom: 0; } /* Действия */ -.user-note-actions { +.ls-note-actions { margin: 10px 0 0 0; } -.user-note-actions li { +.ls-note-actions li { float: left; margin-right: 15px; } -.user-note-actions li a { +.ls-note-actions li a { text-decoration: none; color: #B7BD79; -webkit-transition: color .2s; transition: color .2s; } -.user-note-actions li a:hover { +.ls-note-actions li a:hover { color: #A3A86B; } -.user-note-actions li a:focus { +.ls-note-actions li a:focus { outline: dotted 1px; } -.user-note-actions--add { +.ls-note-actions--add { margin: 0; } -.user-note-actions--add li { +.ls-note-actions--add li { margin: 0; float: none; text-align: center; } /* Форма добавления/редактирования */ -.user-note-form .ls-field { +.ls-note-form .ls-field { margin-bottom: 15px; } -.user-note-form-text { +.ls-note-form-text { height: 5em; } \ No newline at end of file diff --git a/application/frontend/components/note/js/note.js b/application/frontend/components/note/js/note.js index 6df2d4c4..480fae8a 100644 --- a/application/frontend/components/note/js/note.js +++ b/application/frontend/components/note/js/note.js @@ -24,16 +24,16 @@ // Селекторы selectors: { - body: '.js-user-note-body', - text: '.js-user-note-text', - add: '.js-user-note-add', - actions: '.js-user-note-actions', - actions_edit: '.js-user-note-actions-edit', - actions_remove: '.js-user-note-actions-remove', + body: '.js-note-body', + text: '.js-note-text', + add: '.js-note-add', + actions: '.js-note-actions', + actions_edit: '.js-note-actions-edit', + actions_remove: '.js-note-actions-remove', - form: '.js-user-note-form', - form_text: '.js-user-note-form-text', - form_cancel: '.js-user-note-form-cancel' + form: '.js-note-form', + form_text: '.js-note-form-text', + form_cancel: '.js-note-form-cancel' }, params: {} diff --git a/application/frontend/components/note/note.tpl b/application/frontend/components/note/note.tpl index 23d56f70..ee472e66 100644 --- a/application/frontend/components/note/note.tpl +++ b/application/frontend/components/note/note.tpl @@ -7,17 +7,17 @@ *} {* Название компонента *} -{$component = 'user-note'} +{$component = 'ls-note'} {* Установка дефолтных значений *} {$note = $smarty.local.note} {$isEditable = $smarty.local.isEditable|default:true} -
+
{if $note} {$note->getText()} {/if} @@ -25,13 +25,13 @@ {* Действия *} {if $isEditable} -