NIHVIVO-3299: Refactored markup for manage proxy pages and my account

This commit is contained in:
manolobevia 2011-11-11 15:15:05 +00:00
parent 20134640bf
commit 1debf09199
5 changed files with 125 additions and 158 deletions

View file

@ -162,7 +162,7 @@ $(document).ready(function() {
return;
}
$("div[name='proxyProfilesPanel']").each(function(i) {
$("section[name='proxyProfilesPanel']").each(function(i) {
var context = {
baseUrl: proxyContextInfo.baseUrl,
ajaxUrl: proxyContextInfo.ajaxUrl,
@ -172,7 +172,7 @@ $(document).ready(function() {
this["proxyItemsPanel"] = new proxyItemsPanel(this, context);
});
$("div[name='proxyProxiesPanel']").each(function(i) {
$("section[name='proxyProxiesPanel']").each(function(i) {
var context = {
baseUrl: proxyContextInfo.baseUrl,
ajaxUrl: proxyContextInfo.ajaxUrl,

View file

@ -1,13 +1,12 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
$(document).ready(function(){
//Remove initial value of input text 'Select an existing last name'
$('input[name="proxySelectorAC"]').click(function(){
$(this).val('');
});
//Alert when user doesn't select an editor and a profile
//Alert when user doesn't select an editor and a profile after submitting from for relating proxy-profiles
$('input[name="createRelationship"]').click(function(){
var $proxyUri = $('#add-relation input[name="proxyUri"]').val();
var $profileUri = $('#add-relation input[name="profileUri"]').val();