13 lines
339 B
Text
13 lines
339 B
Text
|
// Handle more advanced DOM update after AJAX database manipulation.
|
||
|
// See publish/subscribe design pattern in /doc.
|
||
|
(function() {
|
||
|
var stock_article_row = $('<%= j(render(
|
||
|
:partial => 'stock_article',
|
||
|
:locals => {
|
||
|
:stock_article => @stock_article
|
||
|
}
|
||
|
)) %>');
|
||
|
|
||
|
$('#articles-tbody').prepend(stock_article_row);
|
||
|
})();
|