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
9bc2670f
Commit
9bc2670f
authored
Jan 23, 2017
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Test
parent
a1f083cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
common/modules/school/assets/js/school.js
common/modules/school/assets/js/school.js
+34
-28
common/modules/school/views/course/index.php
common/modules/school/views/course/index.php
+0
-6
No files found.
common/modules/school/assets/js/school.js
View file @
9bc2670f
...
@@ -112,37 +112,43 @@ $(document).ready(function() {
...
@@ -112,37 +112,43 @@ $(document).ready(function() {
else
{
else
{
$
(
'
.spec_propotition
'
).
hide
();
$
(
'
.spec_propotition
'
).
hide
();
}
}
});
});
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_y
'
,
function
(){
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_y
'
,
function
(){
link
=
$
(
this
);
link
=
$
(
this
);
courseId
=
link
.
data
(
'
course
'
);
courseId
=
link
.
data
(
'
course
'
);
if
(
!
link
.
hasClass
(
"
ls_likes_y_choice
"
)
)
{
if
(
!
link
.
hasClass
(
"
ls_likes_y_choice
"
)
)
{
jQuery
.
ajax
({
jQuery
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
url
:
"
/school/likes-course/like-course
"
,
url
:
"
/school/likes-course/like-course
"
,
dataType
:
"
html
"
,
dataType
:
"
html
"
,
data
:
{
'
courseId
'
:
courseId
},
data
:
{
'
courseId
'
:
courseId
},
success
:
function
(
data
){
success
:
function
(
data
){
jQuery
(
'
.ls_likes
'
).
html
(
data
);
jQuery
(
'
.ls_likes
'
).
html
(
data
);
}
}
});
});
}
}
});
});
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_n
'
,
function
(){
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_n
'
,
function
(){
link
=
$
(
this
);
link
=
$
(
this
);
courseId
=
link
.
data
(
'
course
'
);
courseId
=
link
.
data
(
'
course
'
);
if
(
!
link
.
hasClass
(
"
ls_likes_n_choice
"
))
{
if
(
!
link
.
hasClass
(
"
ls_likes_n_choice
"
))
{
jQuery
.
ajax
({
jQuery
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
url
:
"
/school/likes-course/unlike-course
"
,
url
:
"
/school/likes-course/unlike-course
"
,
data
:
{
'
courseId
'
:
courseId
},
data
:
{
'
courseId
'
:
courseId
},
dataType
:
"
html
"
,
dataType
:
"
html
"
,
success
:
function
(
data
){
success
:
function
(
data
){
jQuery
(
'
.ls_likes
'
).
html
(
data
);
jQuery
(
'
.ls_likes
'
).
html
(
data
);
}
}
});
});
}
}
});
$
(
'
#registration_form
'
).
magnificPopup
({
type
:
'
inline
'
,
preloader
:
false
});
});
});
});
...
...
common/modules/school/views/course/index.php
View file @
9bc2670f
...
@@ -95,12 +95,6 @@ WidgetAssetBundle::register($this);
...
@@ -95,12 +95,6 @@ WidgetAssetBundle::register($this);
<div
class=
"white-popup-block mfp-hide"
>
<div
class=
"white-popup-block mfp-hide"
>
<?=
RegistrationWidget
::
widget
();
?>
<?=
RegistrationWidget
::
widget
();
?>
<script
type=
'text/javascript'
>
<script
type=
'text/javascript'
>
$
(
document
).
ready
(
function
()
{
$
(
'
#registration_form
'
).
magnificPopup
({
type
:
'
inline
'
,
preloader
:
false
});
});
</script>
</script>
</div>
</div>
...
...
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