Changed the addition of a dynamic div to slide into place instead of just popping into place.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@213 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-05 20:00:02 +00:00
parent 41aa3f81a8
commit 0f9bafab31

View File

@@ -84,7 +84,7 @@ function htmlEncode(s)
function addDiv(id_name, div_name, into_div_name, flash, html, script) {
var id = $('#'+id_name).val();
html = '<DIV class="added-div" id="'+div_name+'-'+id+'">' +
html = '<DIV class="added-div" id="'+div_name+'-'+id+'" STYLE="display:none;">' +
html.replace(/%{id}/g, id)
.replace(/%{remove(:([^}]*))?}/g,
'<SPAN class="remove-div-link">' +
@@ -103,8 +103,13 @@ function addDiv(id_name, div_name, into_div_name, flash, html, script) {
if (flash) {
$('#'+div_name+'-'+id)
.animate({ backgroundColor: "yellow" }, 300)
.css({'background-color' : 'yellow'})
.slideDown()
//.animate({ backgroundColor: "yellow" }, 300)
.animate({ backgroundColor: "white" }, 500);
} else {
$('#'+div_name+'-'+id)
.show();
}
id = id - 0 + 1;