fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Visual editor: fix for browser compatibility
[fnpeditor.git]
/
modules
/
skelton.js
diff --git
a/modules/skelton.js
b/modules/skelton.js
index
2dbd948
..
0e6749a
100644
(file)
--- a/
modules/skelton.js
+++ b/
modules/skelton.js
@@
-1,10
+1,19
@@
rng.modules.skelton = function(sandbox) {
\r
rng.modules.skelton = function(sandbox) {
\r
+
\r
+ var view = $(sandbox.getTemplate('main')());
\r
+
\r
+ view.find('#rng-skelton-menu a').click(function(e) {
\r
+ e.preventDefault();
\r
+ sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
\r
+ });
\r
+
\r
return {
\r
start: function() {
\r
return {
\r
start: function() {
\r
+ sandbox.getDOM().append(view);
\r
sandbox.publish('ready');
\r
},
\r
sandbox.publish('ready');
\r
},
\r
- setMainView: function(
v
iew) {
\r
-
sandbox.getDOM().html(v
iew);
\r
+ setMainView: function(
mainV
iew) {
\r
+
view.find('#rng-skelton-mainView').html(mainV
iew);
\r
}
\r
}
\r
};
\ No newline at end of file
}
\r
}
\r
};
\ No newline at end of file