Rename "tw-tiddlylink-*" classes to "tc-tiddlylink-*"

Part of #764
This commit is contained in:
Jermolene
2014-08-28 18:13:46 +01:00
parent a7dfa954d1
commit 4a1c530da7
12 changed files with 42 additions and 42 deletions
@@ -41,7 +41,7 @@ exports.parse = function() {
tag: "a",
attributes: {
href: {type: "string", value: this.match[0]},
"class": {type: "string", value: "tw-tiddlylink-external"},
"class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"}
},
children: [{
@@ -73,7 +73,7 @@ exports.parseLink = function(source,pos) {
tag: "a",
start: pos,
attributes: {
"class": {type: "string", value: "tw-tiddlylink-external"},
"class": {type: "string", value: "tc-tiddlylink-external"},
},
children: [textNode]
};
@@ -44,7 +44,7 @@ exports.parse = function() {
tag: "a",
attributes: {
href: {type: "string", value: link},
"class": {type: "string", value: "tw-tiddlylink-external"},
"class": {type: "string", value: "tc-tiddlylink-external"},
target: {type: "string", value: "_blank"}
},
children: [{
+6 -6
View File
@@ -60,15 +60,15 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
if(this.linkClasses) {
classes.push(this.linkClasses);
}
classes.push("tw-tiddlylink");
classes.push("tc-tiddlylink");
if(this.isShadow) {
classes.push("tw-tiddlylink-shadow");
classes.push("tc-tiddlylink-shadow");
}
if(this.isMissing && !this.isShadow) {
classes.push("tw-tiddlylink-missing");
classes.push("tc-tiddlylink-missing");
} else {
if(!this.isMissing) {
classes.push("tw-tiddlylink-resolves");
classes.push("tc-tiddlylink-resolves");
}
}
domNode.setAttribute("class",classes.join(" "));
@@ -126,7 +126,7 @@ LinkWidget.prototype.handleClickEvent = function (event) {
LinkWidget.prototype.handleDragStartEvent = function(event) {
if(this.to) {
// Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,"tw-tiddlylink-dragging");
$tw.utils.addClass(event.target,"tc-tiddlylink-dragging");
// Create the drag image elements
this.dragImage = this.document.createElement("div");
this.dragImage.className = "tw-tiddler-dragger";
@@ -170,7 +170,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
LinkWidget.prototype.handleDragEndEvent = function(event) {
// Remove the dragging class on the element being dragged
$tw.utils.removeClass(event.target,"tw-tiddlylink-dragging");
$tw.utils.removeClass(event.target,"tc-tiddlylink-dragging");
// Delete the drag image element
if(this.dragImage) {
this.dragImage.parentNode.removeChild(this.dragImage);