@@ -78,7 +78,7 @@
|
|||||||
{{ _("Course Description") }}
|
{{ _("Course Description") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="field-description">
|
<div class="field-description">
|
||||||
{{ _("Add a detailed description") }}
|
{{ _("Add a detailed description to provide more information about your course.") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="description" class=""></div>
|
<div id="description" class=""></div>
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
{{ _("Tags") }}
|
{{ _("Tags") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="field-description">
|
<div class="field-description">
|
||||||
{{ _("Add suitable tags") }}
|
{{ _("Tags act as search keywords. They also appear on the Course Card and Course Detail page") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tags field-input">
|
<div class="tags field-input">
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
{{ _("Course Image") }}
|
{{ _("Course Image") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="field-description">
|
<div class="field-description">
|
||||||
{{ _("Add an appropriate image") }}
|
{{ _("Image will appear on the Course Card") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
|
|||||||
@@ -9,6 +9,17 @@ frappe.ready(() => {
|
|||||||
create_tag(e);
|
create_tag(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#tags-input").focus((e) => {
|
||||||
|
$(e.target).keypress((e) => {
|
||||||
|
if (e.which == 13 || e.which == 44) {
|
||||||
|
create_tag(e);
|
||||||
|
setTimeout(() => {
|
||||||
|
$("#tags-input").val("");
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$(document).on("click", ".btn-remove", (e) => {
|
$(document).on("click", ".btn-remove", (e) => {
|
||||||
$(e.target).parent().parent().remove();
|
$(e.target).parent().parent().remove();
|
||||||
});
|
});
|
||||||
@@ -27,14 +38,6 @@ frappe.ready(() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#tags-input").focus((e) => {
|
|
||||||
$(e.target).keypress((e) => {
|
|
||||||
if (e.which == 13) {
|
|
||||||
create_tag(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".btn-upload").click((e) => {
|
$(".btn-upload").click((e) => {
|
||||||
upload_file(e);
|
upload_file(e);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ const save_chapter = (e) => {
|
|||||||
chapter: parent.data("chapter") || null,
|
chapter: parent.data("chapter") || null,
|
||||||
},
|
},
|
||||||
callback: (data) => {
|
callback: (data) => {
|
||||||
|
$("#chapter-modal").modal("hide");
|
||||||
frappe.show_alert({
|
frappe.show_alert({
|
||||||
message: __("Saved"),
|
message: __("Saved"),
|
||||||
indicator: "green",
|
indicator: "green",
|
||||||
|
|||||||
Reference in New Issue
Block a user