fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove mismatched html tags
[fnpeditor.git]
/
src
/
editor
/
views
/
tabs
/
tabs.js
diff --git
a/src/editor/views/tabs/tabs.js
b/src/editor/views/tabs/tabs.js
index
ada2dba
..
0310a04
100644
(file)
--- a/
src/editor/views/tabs/tabs.js
+++ b/
src/editor/views/tabs/tabs.js
@@
-11,7
+11,7
@@
define([
className: 'rng-view-tabs',
events: {
className: 'rng-view-tabs',
events: {
- 'click
ul a,
i': '_onTabTitleClicked'
+ 'click
.rng-view-tabs-tabBar a, .rng-view-tabs-tabBar
i': '_onTabTitleClicked'
},
initialize: function(options) {
},
initialize: function(options) {
@@
-39,7
+39,7
@@
define([
return this;
},
return this;
},
- addTab: function(title, slug, content) {
+ addTab: function(title, slug, content
, tutorial
) {
if(this.contents[slug]) {
this.contents[slug].detach();
}
if(this.contents[slug]) {
this.contents[slug].detach();
}
@@
-49,7
+49,7
@@
define([
var icon = title.icon || null;
if(!this.tabExists(slug)) {
var icon = title.icon || null;
if(!this.tabExists(slug)) {
- this.nodes.tabBar.append(this.handleTemplate({text: text, icon: icon, slug: slug}));
+ this.nodes.tabBar.append(this.handleTemplate({text: text, icon: icon, slug: slug
, tutorial: tutorial
}));
}
if(!this.selectedTab) {
this.selectTab(slug);
}
if(!this.selectedTab) {
this.selectTab(slug);