Browse Source

remove disabled autocomplete stuff

Andrew Dolgov 5 years ago
parent
commit
d953781526
3 changed files with 0 additions and 63 deletions
  1. 0 3
      index.php
  2. 0 30
      js/tt-irc.js
  3. 0 30
      tt-irc.css

+ 0 - 3
index.php

@@ -162,8 +162,6 @@
 
 		<input onkeypress="change_topic_real(this, event)" onblur="hide_topic_input()" type="text"
 			id="topic-input-real" style="display : none"/>
-
-			<div class="autocomplete" id="topic-suggest" style="display:none"></div>
 		</div>
 	</div>
 	<div id="log" data-bind="with: activeChannel" >
@@ -206,7 +204,6 @@
 	<div id="input"><div class="wrapper">
 		<textarea data-bind="enable: activeStatus() == 2" disabled="true" rows="1" id="input-prompt" oninput="input_filter_cr(this, event)" onkeypress="send(this, event)"/></textarea>
 		<div style="display : none" id="emoticons"><?php echo render_emoticons($link) ?></div>
-		<div class="autocomplete" id="input-suggest" style="display:none"></div>
 	</div></div>
 
 	<a class="btn" onclick="Element.toggle('emoticons')" id="emoticon-prompt">:(</a>

+ 0 - 30
js/tt-irc.js

@@ -19,9 +19,6 @@ var startup_date;
 var id_history = [];
 var uniqid;
 var emoticons_map = false;
-var autocomplete = [];
-var autocompleter = false;
-var topic_autocompleter = false;
 
 var timeout_id = false;
 var update_id = false;
@@ -565,33 +562,6 @@ function init_second_stage(transport) {
 		$("input-prompt").value = "";
 		$("input-prompt").focus();
 
-		if (navigator.appName.indexOf("Microsoft Internet") == -1 && getURLParam("ec")) {
-			autocompleter = new Autocompleter.Local("input-prompt",
-				"input-suggest", autocomplete, {tokens: ' ',
-					choices : 5,
-					afterUpdateElement: function(element) { element.value += " " ; },
-					onShow: function(element, update) { Element.show(update); return true; } });
-
-			topic_autocompleter = new Autocompleter.Local("topic-input-real",
-				"topic-suggest", autocomplete, {tokens: ' ',
-					choices : 5,
-					afterUpdateElement: function(element) { element.value += " " ; },
-					onShow: function(element, update) { Element.show(update); return true; } });
-
-			autocomplete = [];
-
-			for (key in emoticons_map) {
-				autocomplete.push(key);
-			}
-
-			for (var i = 0; i < commands.length; i++) {
-				autocomplete.push(commands[i]);
-			}
-
-			autocompleter.options.array = autocomplete;
-			topic_autocompleter.options.array = autocomplete;
-		}
-
 		console.log("init_second_stage");
 
 		document.onkeydown = hotkey_handler;

+ 0 - 30
tt-irc.css

@@ -507,36 +507,6 @@ ul.scrollable li > a {
 	vertical-align : middle;
 }
 
-div.autocomplete {
-	margin : 0px;  
-	padding : 0px;  
-	width : 100px;
-	background : #ffffff;
-	border : 1px solid #88b0f0;
-	position : absolute;
-}
-
-div.autocomplete ul {
-	margin : 0px;
-	padding : 0px;
-	list-style-type : none;
-}
-
-div.autocomplete ul li.selected { 
-	background-color : #88b0f0;
-	color : white;
-}
-
-div.autocomplete ul li {
-	margin : 0;
-	padding : 2px;
-	height : 16px;
-	font-size : 9px;
-	display : block;
-	list-style-type : none;
-	cursor : pointer;
-}
-
 span.message a:visited, span.sys-message a:visited {
 	color : #6100D1;
 }