datetimepicker: close the popup after select the value
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 22 Jan 2013 03:45:37 +0000 (12:45 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 22 Jan 2013 05:26:04 +0000 (14:26 +0900)
According to the UX, close the popup after select the value
(N_SE-22352)

Change-Id: Ib130021896a5761d1dd5009a1ac3132dc05b683c

src/widgets/datetimepicker/js/jquery.mobile.tizen.datetimepicker.js

index ac2c2fd..666ba48 100644 (file)
                                                        .removeClass("out");
 
                                                target.animationComplete( function () {
-                                                       target.removeClass("in");
+                                                       target.removeClass("in").
+                                                               removeClass("ui-datefield-selected");;
                                                });
                                        });
                                } else {
                                        $div.unbind( 'popupafterclose' );
                                        $ul.unbind( 'vclick' );
                                        $(obj).unbind( 'update' );
-                                       $(ui).find('.ui-datefield-selected').removeClass('ui-datefield-selected');
                                        $ctx.popupwindow( 'destroy' );
                                        $div.remove();
                                });
                                        }
 
                                        obj._setDate( date );
+
+                                       $ctx.popupwindow( 'close' );
                                });
 
                                $ul.bind( 'click', function ( e ) {