* Fix bug #43653.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
function addItem(obj)
|
||||
{
|
||||
var newRows = $('#son .row-module-new .btn-delete');
|
||||
if(newRows.length == 1) newRows.removeClass('hidden');
|
||||
var $inputRow = $(obj).closest('.row-module');
|
||||
var $newRow = $('#insertItemBox').children('.row-module').clone().insertAfter($inputRow).addClass('highlight');
|
||||
$newRow.find("input[type!='hidden']").val('');
|
||||
@@ -14,7 +16,9 @@ function addItem(obj)
|
||||
function deleteItem(obj)
|
||||
{
|
||||
var $inputRow = $(obj).closest('.row-module');
|
||||
if ($inputRow.siblings('.row-module.row-module-new').find('.btn-delete').length > 0)
|
||||
var newRow = $inputRow.siblings('.row-module.row-module-new');
|
||||
if(newRow.length == 2) newRow.find('.btn-delete').addClass('hidden');
|
||||
if(newRow.find('.btn-delete').length > 0)
|
||||
{
|
||||
$inputRow.addClass('highlight').fadeOut(500, function()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user