|
@@ -1493,7 +1493,7 @@ var dever_update =
|
|
}
|
|
}
|
|
|
|
|
|
if($('.dever-note').length)
|
|
if($('.dever-note').length)
|
|
- {
|
|
|
|
|
|
+ {
|
|
$('.dever-note').each(function()
|
|
$('.dever-note').each(function()
|
|
{
|
|
{
|
|
var mditor = new Mditor($(this),{
|
|
var mditor = new Mditor($(this),{
|
|
@@ -1502,7 +1502,7 @@ var dever_update =
|
|
|
|
|
|
mditor.openPreview();
|
|
mditor.openPreview();
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
save : function()
|
|
save : function()
|
|
@@ -1634,6 +1634,7 @@ var dever_update =
|
|
|
|
|
|
$('#tab-' + id).parent().remove();
|
|
$('#tab-' + id).parent().remove();
|
|
parent.remove();
|
|
parent.remove();
|
|
|
|
+ self.index[key]--;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1655,9 +1656,9 @@ var dever_update =
|
|
self.index[key] = $(child).length;
|
|
self.index[key] = $(child).length;
|
|
}
|
|
}
|
|
|
|
|
|
- if(self.index[key] > 10)
|
|
|
|
|
|
+ if(self.index[key] > 30)
|
|
{
|
|
{
|
|
- alert('最多只能增加10条');
|
|
|
|
|
|
+ alert('最多只能增加30条');
|
|
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -1679,7 +1680,7 @@ var dever_update =
|
|
|
|
|
|
var content = n.html();
|
|
var content = n.html();
|
|
|
|
|
|
- content = content.replaceAll('_c_', '_c_' + self.index[key] + '_i_');
|
|
|
|
|
|
+ content = content.replaceAll('_c_', '_c_' + (self.index[key]-1) + '_i_');
|
|
|
|
|
|
content = '<div id="'+id+'" style="display:none;" class="'+n.attr('class')+' dever_form_add_child">' + content + '</div>';
|
|
content = '<div id="'+id+'" style="display:none;" class="'+n.attr('class')+' dever_form_add_child">' + content + '</div>';
|
|
|
|
|