fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dodano wyszukiwarke na stronie glownej. Refs #75.
[redakcja.git]
/
project
/
static
/
js
/
editor.js
diff --git
a/project/static/js/editor.js
b/project/static/js/editor.js
index
e615b79
..
879762c
100644
(file)
--- a/
project/static/js/editor.js
+++ b/
project/static/js/editor.js
@@
-151,10
+151,10
@@
Panel.prototype.connectToolbar = function()
action_buttons.each(function() {
var button = $(this);
var hk = button.attr('ui:hotkey');
action_buttons.each(function() {
var button = $(this);
var hk = button.attr('ui:hotkey');
+ var params = $.evalJSON(button.attr('ui:action-params'));
var callback = function() {
var callback = function() {
- editor.callScriptlet(button.attr('ui:action'),
- self, eval(button.attr('ui:action-params')) );
+ editor.callScriptlet(button.attr('ui:action'), self, params);
};
// connect button
};
// connect button