From 3468c5fd758255aebdfc24e6462c99a34035f983 Mon Sep 17 00:00:00 2001
From: diosmosis <benakamoorthi@fastmail.fm>
Date: Mon, 16 Dec 2013 22:19:55 +0000
Subject: [PATCH] Fix loading/Done! text not showing in geolocation settings w/
 morpheus.

---
 plugins/UserCountry/javascripts/userCountry.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/UserCountry/javascripts/userCountry.js b/plugins/UserCountry/javascripts/userCountry.js
index 1da248e16a..79ea1b3a10 100755
--- a/plugins/UserCountry/javascripts/userCountry.js
+++ b/plugins/UserCountry/javascripts/userCountry.js
@@ -12,7 +12,7 @@ $(document).ready(function () {
     $('.location-provider').change(function () {
         if (!$(this).is(':checked')) return; // only handle radio buttons that get checked
 
-        var parent = $(this).parent(),
+        var parent = $(this).closest('p'),
             loading = $('.loadingPiwik', parent),
             ajaxSuccess = $('.success', parent);
 
@@ -25,7 +25,6 @@ $(document).ready(function () {
         }, 'get');
         ajaxRequest.setCallback(
             function () {
-
                 var UI = require('piwik/UI');
                 var notification = new UI.Notification();
                 notification.show(_pk_translate('General_Done'), {
-- 
GitLab