add and use pandora.getEditTooltip (fixes #1276)

This commit is contained in:
rolux 2013-03-01 09:21:39 +05:30
commit 971ef8d016
10 changed files with 47 additions and 42 deletions

View file

@ -225,7 +225,7 @@ pandora.ui.textHTML = function(text) {
editable: text.editable,
height: 32,
placeholder: text.editable ? 'Doubleclick to edit title' : 'Untitled',
tooltip: text.editable ? 'Doubleclick to edit title' : '',
tooltip: text.editable ? pandora.getEditTooltip('title') : '',
value: text.name,
width: width
})
@ -275,7 +275,7 @@ pandora.ui.textHTML = function(text) {
},
maxHeight: height - 1,
placeholder: text.editable ? 'Doubleclick to edit text' : '',
tooltip: text.editable ? 'Doubleclick to edit text' : '',
tooltip: text.editable ? pandora.getEditTooltip('text') : '',
type: 'textarea',
width: width,
value: text.text