pagelayout : change to call relayout with this page
[platform/framework/web/web-ui-fw.git] / libs / patch / 0004-JQM-add-refresh-and-setToolbar-API-to-page.patch
1 From ef42dc6de8adf6a1f8f8cad660a5a719af98b732 Mon Sep 17 00:00:00 2001
2 From: Minkyu Kang <mk7.kang@samsung.com>
3 Date: Thu, 6 Dec 2012 11:39:29 +0900
4 Subject: [PATCH] JQM: add refresh and setToolbar API to page
5
6 Signed-off-by: Jun Jinhyuk <jinhyuk.jun@samsung.com>
7 ---
8  libs/js/jquery-mobile-1.2.0/js/widgets/page.js |    9 +++++++++
9  1 file changed, 9 insertions(+)
10
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/page.js b/libs/js/jquery-mobile-1.2.0/js/widgets/page.js
12 index 256fbb2..38912fb 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/page.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/page.js
15 @@ -35,6 +35,15 @@ $.widget( "mobile.page", $.mobile.widget, {
16  
17         },
18         
19 +       refresh: function() {
20 +               $( this.element ).children( ".ui-content" ).trigger("updatelayout", ["external"]);
21 +       },
22 +
23 +       /* GUI Builder only : redesign page when user drag&drop header, footer */
24 +       setToolbar: function () {
25 +               $( this.element ).trigger( "pagebeforeshow" );
26 +       },
27 +
28         removeContainerBackground: function() {
29                 $.mobile.pageContainer.removeClass( "ui-overlay-" + $.mobile.getInheritedTheme( this.element.parent() ) );
30         },
31 -- 
32 1.7.9.5
33