Skip to content

Commit

Permalink
Merge pull request #364 from Meiwer/master
Browse files Browse the repository at this point in the history
1,Fixed a bug where a page cannot be added to the currently selected category
  • Loading branch information
ryanlelek authored Jul 6, 2022
2 parents 286c743 + 41d99c3 commit 28b6e8a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions themes/default/public/scripts/raneto.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@
// Add Page
$(".add-page").click(function () {
var text = $(this).closest("h5")
.clone()
.children()
.remove()
.end()
.eq(0)
.text()
.trim()
.toLowerCase()
Expand Down Expand Up @@ -128,8 +126,8 @@
file : decodeURI(file_arr.join("/")),
content : $("#entry-markdown").val(),
meta_title : $("#entry-metainfo-title").val(),
meta_description : $("#entry-metainfo-description").val(),
meta_sort : $("#entry-metainfo-sort").val(),
meta_description : $("#entry-metainfo-description").val(),
meta_sort : $("#entry-metainfo-sort").val(),
}, function (data) {
switch (data.status) {
case 0:
Expand Down

0 comments on commit 28b6e8a

Please sign in to comment.