Clean reserved words
This commit is contained in:
parent
44f83a756a
commit
b9ab19974b
@ -6892,7 +6892,7 @@
|
|||||||
return range;
|
return range;
|
||||||
},
|
},
|
||||||
makeLink: function(range) {
|
makeLink: function(range) {
|
||||||
var a, char, i, text;
|
var a, i, t, text;
|
||||||
|
|
||||||
text = range.toString();
|
text = range.toString();
|
||||||
i = 0;
|
i = 0;
|
||||||
@ -6909,8 +6909,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) {
|
while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) {
|
||||||
if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
|
if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
@ -8145,14 +8145,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_Class.prototype.updateFilename = function() {
|
_Class.prototype.updateFilename = function() {
|
||||||
var long;
|
var title;
|
||||||
|
|
||||||
long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
|
title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
|
||||||
this.nodes.el.title = long;
|
this.nodes.el.title = title;
|
||||||
if (this !== QR.selected) {
|
if (this !== QR.selected) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return QR.nodes.fileContainer.title = long;
|
return QR.nodes.fileContainer.title = title;
|
||||||
};
|
};
|
||||||
|
|
||||||
_Class.prototype.showFileData = function() {
|
_Class.prototype.showFileData = function() {
|
||||||
@ -8945,13 +8945,13 @@
|
|||||||
return nodes.total.textContent = --i;
|
return nodes.total.textContent = --i;
|
||||||
},
|
},
|
||||||
generateThumb: function(file) {
|
generateThumb: function(file) {
|
||||||
var double, post, thumb, title;
|
var dupe, post, thumb, title;
|
||||||
|
|
||||||
post = Get.postFromNode(file);
|
post = Get.postFromNode(file);
|
||||||
title = ($('.fileText a', file)).textContent;
|
title = ($('.fileText a', file)).textContent;
|
||||||
thumb = post.file.thumb.parentNode.cloneNode(true);
|
thumb = post.file.thumb.parentNode.cloneNode(true);
|
||||||
if (double = $('img + img', thumb)) {
|
if (dupe = $('img + img', thumb)) {
|
||||||
$.rm(double);
|
$.rm(dupe);
|
||||||
}
|
}
|
||||||
thumb.className = 'gal-thumb';
|
thumb.className = 'gal-thumb';
|
||||||
thumb.title = title;
|
thumb.title = title;
|
||||||
|
|||||||
@ -6902,7 +6902,7 @@
|
|||||||
return range;
|
return range;
|
||||||
},
|
},
|
||||||
makeLink: function(range) {
|
makeLink: function(range) {
|
||||||
var a, char, i, text;
|
var a, i, t, text;
|
||||||
|
|
||||||
text = range.toString();
|
text = range.toString();
|
||||||
i = 0;
|
i = 0;
|
||||||
@ -6919,8 +6919,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
i = 0;
|
i = 0;
|
||||||
while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) {
|
while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) {
|
||||||
if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
|
if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
@ -8152,14 +8152,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
_Class.prototype.updateFilename = function() {
|
_Class.prototype.updateFilename = function() {
|
||||||
var long;
|
var title;
|
||||||
|
|
||||||
long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
|
title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear.";
|
||||||
this.nodes.el.title = long;
|
this.nodes.el.title = title;
|
||||||
if (this !== QR.selected) {
|
if (this !== QR.selected) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return QR.nodes.fileContainer.title = long;
|
return QR.nodes.fileContainer.title = title;
|
||||||
};
|
};
|
||||||
|
|
||||||
_Class.prototype.showFileData = function() {
|
_Class.prototype.showFileData = function() {
|
||||||
@ -8933,13 +8933,13 @@
|
|||||||
return nodes.total.textContent = --i;
|
return nodes.total.textContent = --i;
|
||||||
},
|
},
|
||||||
generateThumb: function(file) {
|
generateThumb: function(file) {
|
||||||
var double, post, thumb, title;
|
var dupe, post, thumb, title;
|
||||||
|
|
||||||
post = Get.postFromNode(file);
|
post = Get.postFromNode(file);
|
||||||
title = ($('.fileText a', file)).textContent;
|
title = ($('.fileText a', file)).textContent;
|
||||||
thumb = post.file.thumb.parentNode.cloneNode(true);
|
thumb = post.file.thumb.parentNode.cloneNode(true);
|
||||||
if (double = $('img + img', thumb)) {
|
if (dupe = $('img + img', thumb)) {
|
||||||
$.rm(double);
|
$.rm(dupe);
|
||||||
}
|
}
|
||||||
thumb.className = 'gal-thumb';
|
thumb.className = 'gal-thumb';
|
||||||
thumb.title = title;
|
thumb.title = title;
|
||||||
|
|||||||
@ -109,8 +109,8 @@ Gallery =
|
|||||||
post = Get.postFromNode file
|
post = Get.postFromNode file
|
||||||
title = ($ '.fileText a', file).textContent
|
title = ($ '.fileText a', file).textContent
|
||||||
thumb = post.file.thumb.parentNode.cloneNode true
|
thumb = post.file.thumb.parentNode.cloneNode true
|
||||||
if double = $ 'img + img', thumb
|
if dupe = $ 'img + img', thumb
|
||||||
$.rm double
|
$.rm dupe
|
||||||
|
|
||||||
thumb.className = 'gal-thumb'
|
thumb.className = 'gal-thumb'
|
||||||
thumb.title = title
|
thumb.title = title
|
||||||
|
|||||||
@ -115,8 +115,8 @@ Linkify =
|
|||||||
|
|
||||||
# Clean hanging brackets, commas, periods
|
# Clean hanging brackets, commas, periods
|
||||||
i = 0
|
i = 0
|
||||||
while /[)\]}>.,]/.test char = text.charAt text.length - (1 + i)
|
while /[)\]}>.,]/.test t = text.charAt text.length - (1 + i)
|
||||||
break unless /[.,]/.test(char) or (text.match /[()\[\]{}<>]/g).length % 2
|
break unless /[.,]/.test(t) or (text.match /[()\[\]{}<>]/g).length % 2
|
||||||
i++
|
i++
|
||||||
|
|
||||||
if i
|
if i
|
||||||
|
|||||||
@ -722,10 +722,10 @@ QR =
|
|||||||
URL.revokeObjectURL @URL
|
URL.revokeObjectURL @URL
|
||||||
|
|
||||||
updateFilename: ->
|
updateFilename: ->
|
||||||
long = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear."
|
title = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear."
|
||||||
@nodes.el.title = long
|
@nodes.el.title = title
|
||||||
return unless @ is QR.selected
|
return unless @ is QR.selected
|
||||||
QR.nodes.fileContainer.title = long
|
QR.nodes.fileContainer.title = title
|
||||||
|
|
||||||
showFileData: ->
|
showFileData: ->
|
||||||
if @file
|
if @file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user