dever 6 anni fa
parent
commit
f9d67fdbfb
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      assets/lib/manage/main.js

+ 7 - 1
assets/lib/manage/main.js

@@ -1534,6 +1534,7 @@ function edit()
 		{
 			$(this).bind('dblclick', function()
 			{
+				
 				var col = $(this).attr('data-col');
 				var project = $(this).attr('data-project');
 				var table = $(this).attr('data-table');
@@ -1547,7 +1548,11 @@ function edit()
 					html = html.replace('<!--', '<');
 					html = html.replace('-->', '>');
 				}
-				
+
+
+				if (html == '点此编辑') {
+					html = '';
+				}
 				if(html.indexOf('input') == -1)
 				{
 					if(type && type == 'textarea')
@@ -1559,6 +1564,7 @@ function edit()
 						$(this).html('<input type="text" name="edit" id="edit" value="'+html+'" class="layui-input">');
 					}
 					var self = $(this);
+					self.find("#edit").focus();
 					self.find("#edit").blur(function()
 					{
 						var value = self.find("#edit").val();