fix rating of wish mark not hidden in modal
This commit is contained in:
parent
aa8d64aa4b
commit
2f3ac213b0
2 changed files with 4 additions and 3 deletions
|
@ -284,7 +284,7 @@
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
|
|
||||||
<div class="rating-star-edit float-left"></div>
|
<div class="rating-star-edit float-left"></div>
|
||||||
<div class="modal-selection float-right" {% if not mark %}hidden{% endif %}>
|
<div id="statusSelection" class="modal-selection float-right" {% if not mark %}hidden{% endif %}>
|
||||||
{{ mark_form.status }}
|
{{ mark_form.status }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,6 +6,7 @@ $(document).ready( function() {
|
||||||
$(".bg-mask").hide();
|
$(".bg-mask").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// pop up new rating modal
|
||||||
$("#aside .mark .button-group .button").each(function() {
|
$("#aside .mark .button-group .button").each(function() {
|
||||||
$(this).click(function(e) {
|
$(this).click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -28,6 +29,7 @@ $(document).ready( function() {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// pop up modify mark modal
|
||||||
$(".mark a.edit").click(function(e) {
|
$(".mark a.edit").click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let title = $(".mark-status-label").text().trim();
|
let title = $(".mark-status-label").text().trim();
|
||||||
|
@ -78,8 +80,7 @@ $(document).ready( function() {
|
||||||
if ($(".modal-selection input[type='radio']:checked").val() == WISH_CODE) {
|
if ($(".modal-selection input[type='radio']:checked").val() == WISH_CODE) {
|
||||||
$(".mark-modal .rating-star-edit").hide();
|
$(".mark-modal .rating-star-edit").hide();
|
||||||
}
|
}
|
||||||
$(".modal-selection input[type='radio']").click(function() {
|
$(".modal-selection#statusSelection input[type='radio']").click(function() {
|
||||||
// 2 is the status code of wish
|
|
||||||
if ($(this).val() == WISH_CODE) {
|
if ($(this).val() == WISH_CODE) {
|
||||||
$(".mark-modal .rating-star-edit").hide();
|
$(".mark-modal .rating-star-edit").hide();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue