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