jQueryUIダイアログオープンコールバック関数は、ダイアログが初めて開いたときにのみ実行されますが、ダイアログを開くたびに機能するようにしたいです。誰か助けてもらえますか?
$('<div><b><center>'+ text +'</center></b></div>').dialog({
title: '<b>User(s) with a similar name</b>',
modal: true,
autoOpen: true,
height: 'auto',
width: 400,
resizable: false,
open: function() {
$('#smartpaginate').smartpaginator({
totalrecords: 3,
recordsperpage: 2,
datacontainer: 'all-tabs',
dataelement: 'table',
theme: 'green'
});
},
buttons: {
"Close": function() {
//alert($(this).attr('class'));
$(this).dialog('close');
return false;
}
}
});
コールバックのコードは、ページ付けプラグインであるJquerysmartpaginatorを実行します。