Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
4c88ce8d
Commit
4c88ce8d
authored
Apr 25, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix
parent
adcae0bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
common/modules/blog/controllers/BlogBidController.php
common/modules/blog/controllers/BlogBidController.php
+1
-0
common/modules/blog/views/post/_subscribe.php
common/modules/blog/views/post/_subscribe.php
+4
-9
No files found.
common/modules/blog/controllers/BlogBidController.php
View file @
4c88ce8d
...
...
@@ -35,6 +35,7 @@ class BlogBidController extends BaseController {
$transaction
=
Yii
::
$app
->
db
->
beginTransaction
();
try
{
var_dump
(
$model
->
validate
());
die
;
if
(
$model
->
save
())
{
$model
->
send
();
...
...
common/modules/blog/views/post/_subscribe.php
View file @
4c88ce8d
...
...
@@ -74,21 +74,16 @@ if ($cacheEmail!==false && BlogBids::find()->where(['email' => $cacheEmail])->ex
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
readyState
==
4
){
try
{
try
{
var
response
=
JSON
.
parse
(
xhr
.
responseText
);
}
catch
(
e
)
{
}
catch
(
e
)
{
var
response
=
xhr
.
responseText
;
}
form
.
find
(
'
.has-error
'
).
removeClass
(
'
has-error
'
);
if
(
response
.
success
)
{
if
(
form
.
find
(
'
.message-box.send_secce
'
).
length
>
0
)
{
if
(
response
.
success
)
{
if
(
form
.
find
(
'
.message-box.send_secce
'
).
length
>
0
)
{
console
.
log
(
'
asd
'
);
form
.
find
(
'
.message-box.send_secce
'
).
fadeIn
(
'
fast
'
);
form
.
find
(
'
.content
'
).
css
(
'
visibility
'
,
'
hidden
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment