fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: tweaking some action descriptions
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
lists.js
diff --git
a/src/editor/plugins/core/lists.js
b/src/editor/plugins/core/lists.js
index
427673e
..
0c017f8
100644
(file)
--- a/
src/editor/plugins/core/lists.js
+++ b/
src/editor/plugins/core/lists.js
@@
-101,6
+101,7
@@
var toggleListAction = function(type) {
return false;
};
return false;
};
+ var label = type === 'Bullet' ? gettext('bull. list') : gettext('num. list');
return {
name: 'toggle' + type + 'List',
return {
name: 'toggle' + type + 'List',
@@
-109,7
+110,7
@@
var toggleListAction = function(type) {
fragment: {type: 'context', name: 'fragment'}
},
stateDefaults: {
fragment: {type: 'context', name: 'fragment'}
},
stateDefaults: {
- label:
type === 'Bullet' ? gettext('bull. list') : gettext('num. list')
+ label:
label
},
getState: function(params) {
if(!params.fragment || !params.fragment.isValid()) {
},
getState: function(params) {
if(!params.fragment || !params.fragment.isValid()) {
@@
-121,7
+122,7
@@
var toggleListAction = function(type) {
if((list.getClass() === 'list' && type === 'Enum') || (list.getClass() === 'list.enum' && type === 'Bullet')) {
return {
allowed: true,
if((list.getClass() === 'list' && type === 'Enum') || (list.getClass() === 'list.enum' && type === 'Bullet')) {
return {
allowed: true,
- description: interpolate(gettext('Change list type to %s'), [
type
]),
+ description: interpolate(gettext('Change list type to %s'), [
label
]),
execute: execute.changeType
};
}
execute: execute.changeType
};
}