|
@@ -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();
|