NIHVIVO-3213: Worked on markup/styles for adding proxies through account pages

This commit is contained in:
manolobevia 2011-10-31 22:05:57 +00:00
parent c93cecb63c
commit af9d8c7424
5 changed files with 82 additions and 38 deletions

View file

@ -41,7 +41,7 @@ function proxyInfoElement(template, uri, label, classLabel, imageUrl, removeInfo
this.uri = uri;
this.label = label;
this.classLabel = classLabel;
this.imageUrl = imageUrl;
this.imageUrl = (imageUrl) ? imageUrl : imageUrl="../images/placeholders/person.thumbnail.jpg";
this.toString = function() {
return "proxyInfoElement: " + content;
@ -52,8 +52,10 @@ function proxyInfoElement(template, uri, label, classLabel, imageUrl, removeInfo
.replace(/%label%/g, this.label)
.replace(/%classLabel%/g, this.classLabel)
.replace(/%imageUrl%/g, this.imageUrl);
var element = $("<div name='proxyInfoElement'>" + content + "</div>");
var element = $("<div class='proxyInfoElement' name='proxyInfoElement'>" + content + "</div>");
var removeLink = $("[templatePart='remove']", element).first();
removeLink.click(function(event) {

View file

@ -0,0 +1,7 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
$(document).ready(function(){
$('input[name="proxySelectorAC"]').click(function(){
$(this).val('');
})
});