From a85393ece24d5397f78fea85ec120f76e5765fc3 Mon Sep 17 00:00:00 2001 From: rclations Date: Fri, 9 Dec 2016 13:15:53 -0500 Subject: [PATCH] fixing update bug - closes #1377 --- js/update-page.js | 2 +- js/update-page.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/update-page.js b/js/update-page.js index bec29c2f0..db83993b2 100644 --- a/js/update-page.js +++ b/js/update-page.js @@ -2,7 +2,7 @@ var $ = jQuery; $('input#update').click(function() { - var parent = $('.update-message'), + var parent = $('.largo-update-message'), spinner = parent.find('.spinner'); parent.find('.message').remove(); diff --git a/js/update-page.min.js b/js/update-page.min.js index e506ec29a..d2ed94919 100644 --- a/js/update-page.min.js +++ b/js/update-page.min.js @@ -1 +1 @@ -!function(){var a=jQuery;a("input#update").click(function(){var b=a(".update-message"),c=b.find(".spinner");return b.find(".message").remove(),c.css("display","inline-block"),a.ajax({url:ajaxurl,data:{action:"largo_ajax_update_database"},type:"POST",dataType:"json",success:function(d){c.css("display","none"),d.success?b.html('
'+d.status+"
"):b.append('
'+d.status+"
"),a('[href="themes.php?page=largo-block-theme-options"]').attr("href","themes.php?page=options-framework")},error:function(){throw"There was an error running the update."}}),!1})}(); \ No newline at end of file +!function(){var a=jQuery;a("input#update").click(function(){var b=a(".largo-update-message"),c=b.find(".spinner");return b.find(".message").remove(),c.css("display","inline-block"),a.ajax({url:ajaxurl,data:{action:"largo_ajax_update_database"},type:"POST",dataType:"json",success:function(d){c.css("display","none"),d.success?b.html('
'+d.status+"
"):b.append('
'+d.status+"
"),a('[href="themes.php?page=largo-block-theme-options"]').attr("href","themes.php?page=options-framework")},error:function(){throw"There was an error running the update."}}),!1})}(); \ No newline at end of file