Skip to content

Commit 0b85f6f

Browse files
committed
Add tooltips for menucard buttons, fixes #76
1 parent cb221ff commit 0b85f6f

File tree

9 files changed

+17
-11
lines changed

9 files changed

+17
-11
lines changed

build/dataflow.build.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dataflow.js - v0.0.7 - 2013-10-02 (4:12:33 PM GMT+0200)
1+
/*! dataflow.js - v0.0.7 - 2013-10-02 (4:18:28 PM GMT+0200)
22
* Copyright (c) 2013 Forrest Oliphant; Licensed MIT, GPL */
33
(function(){
44
var App = Backbone.Model.extend({
@@ -152,7 +152,7 @@
152152
this.plugins.menu.addPlugin({
153153
id: info.id,
154154
icon: info.icon,
155-
label: info.name,
155+
label: info.label,
156156
showLabel: false
157157
});
158158
}
@@ -2739,7 +2739,7 @@
27392739

27402740
var MenuItemView = Backbone.View.extend({
27412741
tagName: 'li',
2742-
template: '<button><i class="icon-<%- icon %>"></i><span class="name"><%- label %></span></button>',
2742+
template: '<button title="<%- label %>"><i class="icon-<%- icon %>"></i><span class="name"><%- label %></span></button>',
27432743
events: {
27442744
'click': 'clicked'
27452745
},
@@ -2951,7 +2951,7 @@
29512951
Menu.card.menu.add({
29522952
id: info.id,
29532953
icon: info.icon,
2954-
label: info.name,
2954+
label: info.label,
29552955
showLabel: false,
29562956
action: function () {
29572957
Menu.card.hide();
@@ -3303,6 +3303,7 @@
33033303

33043304
dataflow.addPlugin({
33053305
id: "library",
3306+
label: "library",
33063307
name: "",
33073308
menu: $container,
33083309
icon: "plus",
@@ -3357,6 +3358,7 @@
33573358

33583359
dataflow.addPlugin({
33593360
id: "source",
3361+
label: "view source",
33603362
name: "",
33613363
menu: $form,
33623364
icon: "code",
@@ -3446,6 +3448,7 @@
34463448

34473449
dataflow.addPlugin({
34483450
id: "log",
3451+
label: "log",
34493452
name: "",
34503453
menu: $log,
34513454
icon: "th-list",

build/dataflow.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dataflow.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dataflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
this.plugins.menu.addPlugin({
151151
id: info.id,
152152
icon: info.icon,
153-
label: info.name,
153+
label: info.label,
154154
showLabel: false
155155
});
156156
}

src/modules/menucard-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
var MenuItemView = Backbone.View.extend({
66
tagName: 'li',
7-
template: '<button><i class="icon-<%- icon %>"></i><span class="name"><%- label %></span></button>',
7+
template: '<button title="<%- label %>"><i class="icon-<%- icon %>"></i><span class="name"><%- label %></span></button>',
88
events: {
99
'click': 'clicked'
1010
},

src/plugins/library.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888

8989
dataflow.addPlugin({
9090
id: "library",
91+
label: "library",
9192
name: "",
9293
menu: $container,
9394
icon: "plus",

src/plugins/log.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
dataflow.addPlugin({
1414
id: "log",
15+
label: "log",
1516
name: "",
1617
menu: $log,
1718
icon: "th-list",

src/plugins/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Menu.card.menu.add({
1616
id: info.id,
1717
icon: info.icon,
18-
label: info.name,
18+
label: info.label,
1919
showLabel: false,
2020
action: function () {
2121
Menu.card.hide();

src/plugins/view-source.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
dataflow.addPlugin({
2020
id: "source",
21+
label: "view source",
2122
name: "",
2223
menu: $form,
2324
icon: "code",

0 commit comments

Comments
 (0)