When data modifed by Ajax, rebuild it;

set a globla var rebuild to tell soter, whether rebuild table;
How to use:
    rebuild = 1;
    $("#otable").find('tr th').first().trigger('click');
    rebuild = 0;