Export 0.1.45
[framework/web/web-ui-fw.git] / libs / patch / 0011-JQM-add-refresh-api-to-page.patch
1 From 15b17c830a4d9737b23da195e23ed02aabcf2c36 Mon Sep 17 00:00:00 2001
2 From: Jun Jinhyuk <jinhyuk.jun@samsung.com>
3 Date: Fri, 6 Jul 2012 07:15:19 -0400
4 Subject: [PATCH] JQM add refresh api to page
5
6 ---
7  .../jquery-mobile-1.1.0/js/jquery.mobile.page.js   |   12 ++++++++----
8  1 files changed, 8 insertions(+), 4 deletions(-)
9
10 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js
11 index d2bd195..85c77fe 100644
12 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js
13 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.page.js
14 @@ -15,9 +15,9 @@ $.widget( "mobile.page", $.mobile.widget, {
15         },
16  
17         _create: function() {
18 -               
19 +
20                 var self = this;
21 -               
22 +
23                 // if false is returned by the callbacks do not create the page
24                 if( self._trigger( "beforecreate" ) === false ){
25                         return false;
26 @@ -34,11 +34,15 @@ $.widget( "mobile.page", $.mobile.widget, {
27                         } );
28  
29         },
30 -       
31 +
32 +       refresh : function() {
33 +               $( ".ui-page-active" ).children( ".ui-content" ).trigger("updatelayout", ["external"]);
34 +       },
35 +
36         removeContainerBackground: function(){
37                 $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
38         },
39 -       
40 +
41         // set the page container background to the page theme
42         setContainerBackground: function( theme ){
43                 if( this.options.theme ){
44 -- 
45 1.7.4.1
46