← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9842: fixed two bugs in sharing dialog: remove newly added uga (added a .on handler to bind to dom chan...

 

------------------------------------------------------------
revno: 9842
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-02-19 18:33:28 +0700
message:
  fixed two bugs in sharing dialog: remove newly added uga (added a .on handler to bind to dom changes). added placeholder for search input.
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm


--
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/macros.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm	2013-01-28 06:07:57 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/macros.vm	2013-02-19 11:33:28 +0000
@@ -427,7 +427,8 @@
             $( '#sharingPublicAccess' ).attr( 'disabled', true );
         }
 
-        $( '.removeUserGroupAccess' ).unbind( 'click' ).bind( 'click', removeUserGroupAccess );
+        $( '.removeUserGroupAccess' ).unbind( 'click' )
+        $( document ).on( 'click', '.removeUserGroupAccess', removeUserGroupAccess );
         $( '#addUserGroupAccess' ).unbind( 'click' ).bind( 'click', addUserGroupAccessSelectedItem );
 
         $( '#sharingFindUserGroup' ).autocomplete( {
@@ -507,7 +508,7 @@
             </tr>
 
             <tr>
-                <td><input style="width: 100%;" id="sharingFindUserGroup" /></td>
+                <td><input style="width: 100%;" id="sharingFindUserGroup" placeholder="Search for user groups"/></td>
                 <td style="width: 24px;"><button id="addUserGroupAccess" disabled="disabled" style="width: 24px; text-align: center;">+</button></td>
             </tr>
         </tbody>