Commit 5d081235a361e8b7e7bf295d707ff0169e140260
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
35 additions
and
34 deletions
Show diff stats
common/models/Feedback.php
frontend/views/layouts/main.php
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | AppAsset::register($this); |
| 29 | 29 | $user = \Yii::$app->user->identity; |
| 30 | 30 | $seo = Yii::$app->get('seo'); |
| 31 | - $feedback = new Feedback(); | |
| 31 | + $feedback = new Feedback(['scenario'=>Feedback::SCENARIO_FEEDBACK]); | |
| 32 | 32 | $settings = Settings::getInstance(); |
| 33 | 33 | $controller = Yii::$app->controller; |
| 34 | 34 | $default_controller = Yii::$app->defaultRoute; | ... | ... |
frontend/web/js/script.js
| ... | ... | @@ -112,38 +112,38 @@ $( |
| 112 | 112 | } |
| 113 | 113 | ); |
| 114 | 114 | |
| 115 | - $(".close, .modal.fade").on('click', function(){ | |
| 116 | - $("#feedback-form")['0'].reset(); | |
| 117 | - $(".send-form").removeClass("specialist"); | |
| 118 | - $(".send-form").removeClass("calculate"); | |
| 119 | - $(".send-form").removeClass("order"); | |
| 120 | - $(".send-form").removeClass("call"); | |
| 121 | - $(".send-form").removeClass("callback"); | |
| 122 | - $(".send-form").removeClass("consultation"); | |
| 123 | - }); | |
| 124 | - $(".press-consultation").on('click',function(){ | |
| 125 | - $("#feedback-form")['0'].reset(); | |
| 126 | - $(".send-form").addClass("consultation"); | |
| 127 | - }); | |
| 128 | - $(".press-specialist").on('click',function(){ | |
| 129 | - $("#feedback-form")['0'].reset(); | |
| 130 | - $(".send-form").addClass("specialist"); | |
| 131 | - }); | |
| 132 | - $(".press-calculate").on('click',function(){ | |
| 133 | - $("#feedback-form")['0'].reset(); | |
| 134 | - $(".send-form").addClass("calculate"); | |
| 135 | - }); | |
| 136 | - $(".press-order").on('click',function(){ | |
| 137 | - $("#feedback-form")['0'].reset(); | |
| 138 | - $(".send-form").addClass("order"); | |
| 139 | - }); | |
| 140 | - $(".press-call").on('click',function(){ | |
| 141 | - $("#feedback-form")['0'].reset(); | |
| 142 | - $(".send-form").addClass("call"); | |
| 143 | - }); | |
| 144 | - $(".press-callback").on('click',function(){ | |
| 145 | - $("#feedback-form")['0'].reset(); | |
| 146 | - $(".send-form").addClass("callback"); | |
| 147 | - }); | |
| 115 | +// $(".close, .modal.fade").on('click', function(){ | |
| 116 | +// $("#feedback-form")['0'].reset(); | |
| 117 | +// $(".send-form").removeClass("specialist"); | |
| 118 | +// $(".send-form").removeClass("calculate"); | |
| 119 | +// $(".send-form").removeClass("order"); | |
| 120 | +// $(".send-form").removeClass("call"); | |
| 121 | +// $(".send-form").removeClass("callback"); | |
| 122 | +// $(".send-form").removeClass("consultation"); | |
| 123 | +// }); | |
| 124 | +// $(".press-consultation").on('click',function(){ | |
| 125 | +// $("#feedback-form")['0'].reset(); | |
| 126 | +// $(".send-form").addClass("consultation"); | |
| 127 | +// }); | |
| 128 | +// $(".press-specialist").on('click',function(){ | |
| 129 | +// $("#feedback-form")['0'].reset(); | |
| 130 | +// $(".send-form").addClass("specialist"); | |
| 131 | +// }); | |
| 132 | +// $(".press-calculate").on('click',function(){ | |
| 133 | +// $("#feedback-form")['0'].reset(); | |
| 134 | +// $(".send-form").addClass("calculate"); | |
| 135 | +// }); | |
| 136 | +// $(".press-order").on('click',function(){ | |
| 137 | +// $("#feedback-form")['0'].reset(); | |
| 138 | +// $(".send-form").addClass("order"); | |
| 139 | +// }); | |
| 140 | +// $(".press-call").on('click',function(){ | |
| 141 | +// $("#feedback-form")['0'].reset(); | |
| 142 | +// $(".send-form").addClass("call"); | |
| 143 | +// }); | |
| 144 | +// $(".press-callback").on('click',function(){ | |
| 145 | +// $("#feedback-form")['0'].reset(); | |
| 146 | +// $(".send-form").addClass("callback"); | |
| 147 | +// }); | |
| 148 | 148 | } |
| 149 | 149 | ); |
| 150 | 150 | \ No newline at end of file | ... | ... |