ophir 4 anni fa
parent
commit
244eaf3895
1 ha cambiato i file con 13 aggiunte e 13 eliminazioni
  1. 13
    13
      client-data/js/board.js

+ 13
- 13
client-data/js/board.js Vedi File

@@ -123,7 +123,7 @@ Tools.HTML = {
123 123
 				Tools.i18n.t("keyboard shortcut") + ": " +
124 124
 				toolShortcut + ")" +
125 125
 				(Tools.list[toolName].secondary ? " [" + Tools.i18n.t("click_to_toggle") + "]" : "");
126
-			if(Tools.list[toolName].secondary) {
126
+			if (Tools.list[toolName].secondary) {
127 127
 				elem.classList.add('hasSecondary');
128 128
 				var secondaryIcon = elem.getElementsByClassName('secondaryIcon')[0];
129 129
 				secondaryIcon.src = Tools.list[toolName].secondary.icon;
@@ -646,17 +646,17 @@ Tools.svg.height.baseVal.value = document.body.clientHeight;
646 646
 /**
647 647
  What does a "tool" object look like?
648 648
  newtool = {
649
- 	"name" : "SuperTool",
650
- 	"listeners" : {
651
- 		"press" : function(x,y,evt){...},
652
- 		"move" : function(x,y,evt){...},
653
-  		"release" : function(x,y,evt){...},
654
- 	},
655
- 	"draw" : function(data, isLocal){
656
- 		//Print the data on Tools.svg
657
- 	},
658
- 	"onstart" : function(oldTool){...},
659
- 	"onquit" : function(newTool){...},
660
- 	"stylesheet" : "style.css",
649
+	  "name" : "SuperTool",
650
+	  "listeners" : {
651
+			"press" : function(x,y,evt){...},
652
+			"move" : function(x,y,evt){...},
653
+			"release" : function(x,y,evt){...},
654
+	  },
655
+	  "draw" : function(data, isLocal){
656
+			//Print the data on Tools.svg
657
+	  },
658
+	  "onstart" : function(oldTool){...},
659
+	  "onquit" : function(newTool){...},
660
+	  "stylesheet" : "style.css",
661 661
 }
662 662
 */

Loading…
Annulla
Salva