fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forcing document element label not to wrap
[fnpeditor.git]
/
modules
/
documentHistory
/
documentHistory.js
diff --git
a/modules/documentHistory/documentHistory.js
b/modules/documentHistory/documentHistory.js
index
8e686e6
..
c3a2f69
100644
(file)
--- a/
modules/documentHistory/documentHistory.js
+++ b/
modules/documentHistory/documentHistory.js
@@
-37,7
+37,7
@@
return function(sandbox) {
var addHistoryItem = function(item, options) {
historyItems.add(item);
var addHistoryItem = function(item, options) {
historyItems.add(item);
- var view = new
i
temView(item);
+ var view = new
I
temView(item);
itemViews.push(view);
domNodes.itemList.prepend(view.dom);
if(options.animate) {
itemViews.push(view);
domNodes.itemList.prepend(view.dom);
if(options.animate) {
@@
-104,13
+104,13
@@
return function(sandbox) {
};
historyItems._updateUI();
};
historyItems._updateUI();
- var
i
temView = function(item) {
+ var
I
temView = function(item) {
this.item = item;
this.dom = $(this.template(item));
this.dom.on('click', _.bind(this.onItemClicked, this));
};
this.item = item;
this.dom = $(this.template(item));
this.dom.on('click', _.bind(this.onItemClicked, this));
};
-
i
temView.prototype.template = _.template(itemTemplateSrc);
-
i
temView.prototype.onItemClicked = function() {
+
I
temView.prototype.template = _.template(itemTemplateSrc);
+
I
temView.prototype.onItemClicked = function() {
if(historyItems.isSelected(this.item)) {
historyItems.unselect(this.item);
this.dimItem();
if(historyItems.isSelected(this.item)) {
historyItems.unselect(this.item);
this.dimItem();
@@
-118,13
+118,13
@@
return function(sandbox) {
this.highlightItem();
}
};
this.highlightItem();
}
};
-
i
temView.prototype.highlightItem = function() {
+
I
temView.prototype.highlightItem = function() {
this.dom.addClass('highlighted');
};
this.dom.addClass('highlighted');
};
-
i
temView.prototype.dimItem = function() {
+
I
temView.prototype.dimItem = function() {
this.dom.removeClass('highlighted');
};
this.dom.removeClass('highlighted');
};
-
i
temView.prototype.toggle = function(toggle) {
+
I
temView.prototype.toggle = function(toggle) {
this.dom.toggleClass('disabled', !toggle);
};
this.dom.toggleClass('disabled', !toggle);
};