dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23920
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11660: minor ui fixes to sharing dialog
------------------------------------------------------------
revno: 11660
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-08-13 15:44:04 +0200
message:
minor ui fixes to sharing 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 2013-08-13 07:18:45 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.sharing.js 2013-08-13 13:44:04 +0000
@@ -64,9 +64,9 @@
access: "r-------"
});
- $(tmpl_html).insertAfter( $('#sharingAccessTable tbody tr').not('[id]') );
+ $(tmpl_html).insertAfter( $('#sharingAccessTable tbody tr').not('[id]').last() );
- $('#sharingFindUserGroup').val('')
+ $('#sharingFindUserGroup').val('');
sharingSelectedItem = undefined;
$( '#addUserGroupAccess' ).attr( 'disabled', true );
@@ -92,7 +92,7 @@
access: item.access
});
- $(tmpl_html).insertAfter( $('#sharingAccessTable tbody tr').not('[id]') );
+ $(tmpl_html).insertAfter( $('#sharingAccessTable tbody tr').not('[id]').last() );
});
}
}
@@ -156,7 +156,6 @@
$( '#sharingPublicAccess' ).attr( 'disabled', true );
}
-
$( '.removeUserGroupAccess' ).unbind( 'click' );
$( document ).on( 'click', '.removeUserGroupAccess', removeUserGroupAccess );
$( '#addUserGroupAccess' ).unbind( 'click' ).bind( 'click', addUserGroupAccessSelectedItem );