NIHVIVO 3722, 3723 and 3725 css and js changes for OpenSocial gadgets
This commit is contained in:
parent
c338c9025b
commit
4bf0729f04
3 changed files with 37 additions and 23 deletions
|
@ -39,7 +39,7 @@ gadgets.pubsubrouter.init(function(id) {
|
|||
return true;
|
||||
}
|
||||
if (message == 'Y') {
|
||||
statusId.style.color = 'GREEN';
|
||||
/* statusId.style.color = 'GREEN';
|
||||
statusId.innerHTML = 'This section is VISIBLE';
|
||||
if (my.gadgets[moduleId].visible_scope == 'U') {
|
||||
statusId.innerHTML += ' to UCSF';
|
||||
|
@ -47,9 +47,13 @@ gadgets.pubsubrouter.init(function(id) {
|
|||
else {
|
||||
statusId.innerHTML += ' to the public';
|
||||
}
|
||||
*/
|
||||
/* changed the gui here -- tlw72 */
|
||||
statusId.style.color = '#5e6363';
|
||||
statusId.innerHTML = 'public';
|
||||
}
|
||||
else {
|
||||
statusId.style.color = '#CC0000';
|
||||
/* statusId.style.color = '#CC0000';
|
||||
statusId.innerHTML = 'This section is HIDDEN';
|
||||
if (my.gadgets[moduleId].visible_scope == 'U') {
|
||||
statusId.innerHTML += ' from UCSF';
|
||||
|
@ -57,6 +61,10 @@ gadgets.pubsubrouter.init(function(id) {
|
|||
else {
|
||||
statusId.innerHTML += ' from the public';
|
||||
}
|
||||
*/
|
||||
/* changed the gui here -- tlw72 */
|
||||
statusId.style.color = '#5e6363';
|
||||
statusId.innerHTML = 'private';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -370,7 +378,7 @@ ProfilesGadget.prototype.handleToggle = function() {
|
|||
//OPEN
|
||||
gadgetContent.parentNode.style.width = (my.gadgets[this.id].open_width || 600) + 'px';
|
||||
gadgetContent.style.display = '';
|
||||
gadgetImg.src = '/' + location.pathname.split('/')[1] + '/themes/opensocial/images/openSocial/icon_squareDownArrow.gif';
|
||||
gadgetImg.src = '/' + location.pathname.split('/')[1] + '/themes/wilma/images/green_minus_sign.gif';
|
||||
// refresh if certain features require so
|
||||
//if (this.hasFeature('dynamic-height')) {
|
||||
if (my.gadgets[this.id].chrome_id == 'gadgets-search') {
|
||||
|
@ -396,7 +404,7 @@ ProfilesGadget.prototype.handleToggle = function() {
|
|||
//CLOSE
|
||||
gadgetContent.parentNode.style.width = (my.gadgets[this.id].closed_width || 600) + 'px';
|
||||
gadgetContent.style.display = 'none';
|
||||
gadgetImg.src = '/' + location.pathname.split('/')[1] + '/themes/opensocial/images/openSocial/icon_squareArrow.gif';
|
||||
gadgetImg.src = '/' + location.pathname.split('/')[1] + '/themes/wilma/images/green_plus_sign.gif';
|
||||
if (my.gadgets[this.id].view == 'home') {
|
||||
// record in google analytics
|
||||
_gaq.push(['_trackEvent', my.gadgets[this.id].name, 'CLOSE_IN_EDIT', 'profile_edit_view']);
|
||||
|
@ -421,7 +429,7 @@ ProfilesGadget.prototype.getTitleBarContent = function(continuation) {
|
|||
this.cssClassTitleButtonBar + '">' +
|
||||
'<a href="#" onclick="shindig.container.getGadget(' + this.id +
|
||||
').handleToggle();return false;" class="' + this.cssClassTitleButton +
|
||||
'"><img id="gadgets-gadget-title-image-' + this.id + '" src="/' + location.pathname.split('/')[1] + '/themes/opensocial/images/openSocial/icon_squareDownArrow.gif"/></a></span> <span id="' +
|
||||
'"><img id="gadgets-gadget-title-image-' + this.id + '" src="/' + location.pathname.split('/')[1] + '/themes/wilma/images/green_minus_sign.gif"/></a></span> <span id="' +
|
||||
this.getIframeId() + '_title" class="' + this.cssClassTitle + '">' +
|
||||
'<a href="#" onclick="shindig.container.getGadget(' + this.id + ').handleToggle();return false;">' +
|
||||
(this.title ? this.title : 'Gadget') + '</a>' + '</span><span id="' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue