diff --git a/cps/static/js/get_meta.js b/cps/static/js/get_meta.js index ffaf0473..3ad5ffd8 100644 --- a/cps/static/js/get_meta.js +++ b/cps/static/js/get_meta.js @@ -73,9 +73,9 @@ $(function () { if (showFlag === 1) { $("#meta-info").html("
" + msg.no_result + "
"); return; } @@ -191,7 +191,7 @@ $(function () { var dateFomers = ""; if (result.store_date) { dateFomers = result.store_date.split("-"); - }else{ + } else { dateFomers = result.date_added.split("-"); } var publishedYear = parseInt(dateFomers[0]); @@ -202,12 +202,12 @@ $(function () { var book = { id: result.id, - title: seriesTitle + ' #' +('00' + result.issue_number).slice(-3) + ' - ' + result.name, + title: seriesTitle + " #" + ("00" + result.issue_number).slice(-3) + " - " + result.name, authors: result.author || [], description: result.description, publisher: "", publishedDate: publishedDate || "", - tags: ['Comics', seriesTitle], + tags: ["Comics", seriesTitle], rating: 0, series: seriesTitle || "", cover: result.image.original_url, diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 5738f36e..f005e3b7 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -211,8 +211,7 @@ $(function() { data: {"parameter":2}, success: function success(data) { $("#spinner2").hide(); - ResultText = data.text; - $("#DialogContent").html(ResultText); + $("#DialogContent").html(data.text); $("#DialogFinished").removeClass("hidden"); } }); @@ -298,7 +297,7 @@ $(function() { $(".discover .row").isotope("layout"); }); - $('#import_ldap_users').click(function() { + $("#import_ldap_users").click(function() { $("#DialogHeader").addClass("hidden"); $("#DialogFinished").addClass("hidden"); $("#DialogContent").html(""); @@ -311,8 +310,7 @@ $(function() { url: path + "/../../import_ldap_users", success: function success(data) { $("#spinner2").hide(); - ResultText = data.text; - $("#DialogContent").html(ResultText); + $("#DialogContent").html(data.text); $("#DialogFinished").removeClass("hidden"); } }); diff --git a/cps/static/js/table.js b/cps/static/js/table.js index 1478a519..7572159e 100644 --- a/cps/static/js/table.js +++ b/cps/static/js/table.js @@ -149,12 +149,10 @@ $(function() { $.ajax({ url: path + "/../../ajax/editrestriction/" + type, type: "Post", - data: row //$(this).closest("form").serialize() + "&" + $(this)[0].name + "=", + data: row }); }); $("[id^=submit_]").click(function(event) { - // event.stopPropagation(); - // event.preventDefault(); $(this)[0].blur(); $.ajax({ url: path + "/../../ajax/addrestriction/" + type,