← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18140: bugfix for sharing dialog / ug search, properly destroy autocomplete when closing dialog

 

------------------------------------------------------------
revno: 18140
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-01-29 11:53:00 +0700
message:
  bugfix for sharing dialog / ug search, properly destroy autocomplete when closing dialog
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.sharing.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.sharing.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.sharing.js	2015-01-08 18:34:49 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.sharing.js	2015-01-29 04:53:00 +0000
@@ -185,6 +185,7 @@
       height: 555,
       buttons: {
         'Cancel': function() {
+          $('#sharingFindUserGroup').autocomplete('destroy');
           $(this).dialog('destroy');
         },
         'Save': function() {
@@ -195,6 +196,7 @@
           data.object.userGroupAccesses = getUserGroupAccesses();
 
           saveSharingSettings(type, uid, data).done(function() {
+            $('#sharingFindUserGroup').autocomplete('destroy');
             me.dialog('destroy');
           });
         }