12 lines
488 B
Text
12 lines
488 B
Text
// Handle more advanced DOM update after AJAX database manipulation.
|
|
// See publish/subscribe design pattern in /doc.
|
|
(function() {
|
|
$('#stock_articles_for_adding tr').removeClass('success');
|
|
|
|
var stock_article_for_adding = $(
|
|
'<%= j(render(:partial => 'stock_article_for_adding', :locals => {:article => @stock_article})) %>'
|
|
).addClass('success');
|
|
|
|
$('#stock_articles_for_adding tbody').append(stock_article_for_adding);
|
|
updateSort('#stock_articles_for_adding');
|
|
})();
|