// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(document).ready(function() {

	$('#roles_dialog_form').hide();
	$('#edit_user_roles_view').click(function() {
		$('#roles_dialog_form').dialog( {
			width: 600,
			height: 200,
			title: "Edit Roles for the User",
			buttons: {
				"Cancel" : function() {
					$("#roles_dialog_form").dialog("close");
				},
			 "Add"	: function() {
					$("#roles_dialog_form").dialog
				}
			}
		}).prev().find(".ui-dialog-titlebar-close").hide(); // To hide the standard close button
	return false
	});

});




//automatically checks Institutional reviewer role when Institutional Administrator role gets checked
$(function() {

	$('#5').change(function(){
		if ($('#5').is(':checked')) { 
			$('#4').prop('checked', true);
		}
	});

});























>>>>>>> development

@@ -896,24 +896,5 @@
 %0A%0A%0A%0A
-%3E%3E%3E%3E%3E%3E%3E development
 %0A

fix javascript typo in users.js