Add apply while close edit dialog.(avoid angularJS and JQuery combined sync issue)