don't show a tooltip when a site dialog text is not editable
This commit is contained in:
parent
8aca2ab04d
commit
5cf436546d
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,8 @@ pandora.ui.siteDialog = function(section) {
|
|||
Ox.Editable({
|
||||
clickLink: pandora.clickLink,
|
||||
editable: pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||
tooltip: 'Doubleclick to edit',
|
||||
tooltip: pandora.site.capabilities.canEditSitePages[pandora.user.level]
|
||||
? 'Doubleclick to edit' : '',
|
||||
type: 'textarea',
|
||||
value: result.data.body
|
||||
})
|
||||
|
@ -77,7 +78,7 @@ pandora.ui.siteDialog = function(section) {
|
|||
.html(
|
||||
'<b>' + name + '</b><br/><div style="padding-top: 2px; font-size: 9px; opacity: 0.75">'
|
||||
+ risk[i] + ' Risk'
|
||||
+ (i % 3 == 0 ? '<br/> of ' : ' of<br/>')
|
||||
+ (risk[i].length > 6 ? '<br/> of ' : ' of<br/>')
|
||||
+ 'Legal Action</div>'
|
||||
)
|
||||
.appendTo($column);
|
||||
|
|
Loading…
Reference in a new issue