registerClient.jsp revision f58c87ece2202b8f85310d8885c7e39a7f435c09
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $(document).ready(function () {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync //add buttons
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#add_url').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("add_url Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var options = $('#redirection_urls').prop('options');
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var value = $('#url').val();
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync options[options.length] = new Option(value, value, false, false);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#add_scope').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("add_scope Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var options = $('#scopes').prop('options');
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var value = $('#scope').val();
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync options[options.length] = new Option(value, value, false, false);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#add_default_scope').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("add_default_scope Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var options = $('#default_scopes').prop('options');
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var value = $('#default_scope').val();
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync options[options.length] = new Option(value, value, false, false);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#add_display_name').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("add_display_name Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var options = $('#display_names').prop('options');
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var value = $('#display_name').val();
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync options[options.length] = new Option(value, value, false, false);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#add_dispaly_description').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("add_dispaly_description Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var options = $('#display_descriptions').prop('options');
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync var value = $('#display_description').val();
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync options[options.length] = new Option(value, value, false, false);
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync //remove buttons
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#remove_url').click(function(){
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync console.log("remove_url Pressed");
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync $('#redirection_urls option:selected').remove();
console.log("remove_scope Pressed");
console.log("remove_default_scope Pressed");
console.log("remove_display_name Pressed");
console.log("remove_display_description Pressed");
console.log("client submit");
temp.append(scopes_options[i].value+";");
temp.append(display_names_options[i].value+";");
Client Password:<br><input type="password" name="client_password" value="" id="client_password"/><br><br>
Client Password: (confirm)<br><input type="password" name="client_password2" value="" id="client_password2"/><br><br>
Client Type:<br><input type="radio" name="client_type" value="Confidential" checked />Confidential<br>
Redirection URL(s):<br><select id="redirection_urls" multiple="single" name="redirection_urls"></select><input type="button" name="remove_url" id="remove_url" value="Remove"/><br>
<input type="text" name="url" value="" id ="url"/><input type="button" name="add_url" id="add_url" value="Add"/><br><br>
Scope(s):<br><select id="scopes" multiple="single" name="scopes"></select><input type="button" name="remove_scope" id="remove_scope" value="Remove"/><br>
<input type="text" name="scope" id ="scope" value=""/><input type="button" name="add_scope" id="add_scope" value="Add"/><br><br>
Default Scope(s):<br><select id="default_scopes" multiple="single" name="default_scopes"></select><input type="button" name="remove_default_scope" id="remove_default_scope" value="Remove"/><br>
<input type="text" name="default_scope" id ="default_scope" value=""/><input type="button" name="add_default_scope" id="add_default_scope" value="Add"/><br><br>
Display Name(s):<br><select id="display_names" multiple="single" name="display_names"></select><input type="button" name="remove_display_name" id="remove_display_name" value="Remove"/><br>
<input type="text" name="display_name" id ="display_name" value=""/><input type="button" name="add_display_name" id="add_display_name" value="Add"/><br><br>
Display Description(s):<br><select id="display_descriptions" multiple="single" name="display_descriptions"></select><input type="button" name="remove_display_description" id="remove_display_description" value="Remove"/><br>