mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-09 04:46:07 +10:00
18 lines
565 B
JavaScript
18 lines
565 B
JavaScript
$(document).ready(function(){
|
|
|
|
|
|
deletebooks = function(){
|
|
$('.btn.btn-danger.btn-mini.hidden').removeClass('hidden');
|
|
$('.delete-books').removeClass('btn-danger')
|
|
.text('取消')
|
|
.unbind('click')
|
|
.click(function(){
|
|
$(this).addClass('btn-danger').text('删除书籍');
|
|
$('.btn.btn-danger.btn-mini').addClass('hidden');
|
|
$(this).unbind('click').bind('click',deletebooks);
|
|
});
|
|
}
|
|
|
|
$('.btn.delete-books.btn-danger').bind('click',deletebooks);
|
|
});
|