Merge branch 'sdk'
[platform/framework/web/web-ui-fw.git] / libs / patch / 0014-JQM-add-back-btn-option-and-remove-jqm-back-btn.patch
1 From 252820a3ea292bf652d2ecd644c0126152a20f46 Mon Sep 17 00:00:00 2001
2 From: Jun Jinhyuk <jinhyuk.jun@samsung.com>
3 Date: Wed, 28 Nov 2012 14:25:58 +0900
4 Subject: [PATCH] JQM add back btn option and remove jqm back btn
5
6 Signed-off-by: Jun Jinhyuk <jinhyuk.jun@samsung.com>
7 ---
8  .../js/widgets/page.sections.js                    |   16 ++--------------
9  1 files changed, 2 insertions(+), 14 deletions(-)
10
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/page.sections.js b/libs/js/jquery-mobile-1.2.0/js/widgets/page.sections.js
12 index 7c05ecb..cbf6786 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/page.sections.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/page.sections.js
15 @@ -8,11 +8,12 @@ define( [ "jquery", "./page", "../jquery.mobile.core" ], function( $ ) {
16  (function( $, undefined ) {
17  
18  $.mobile.page.prototype.options.backBtnText  = "Back";
19 -$.mobile.page.prototype.options.addBackBtn   = false;
20 +$.mobile.page.prototype.options.addBackBtn   = "footer";
21  $.mobile.page.prototype.options.backBtnTheme = null;
22  $.mobile.page.prototype.options.headerTheme  = "a";
23  $.mobile.page.prototype.options.footerTheme  = "a";
24  $.mobile.page.prototype.options.contentTheme = null;
25 +$.mobile.page.prototype.options.footerExist  = true;
26  
27  // NOTE bind used to force this binding to run before the buttonMarkup binding
28  //      which expects .ui-footer top be applied in its gigantic selector
29 @@ -61,19 +62,6 @@ $( document ).bind( "pagecreate", function( e ) {
30                                 rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
31                         }
32  
33 -                       // Auto-add back btn on pages beyond first view
34 -                       if ( o.addBackBtn &&
35 -                               role === "header" &&
36 -                               $( ".ui-page" ).length > 1 &&
37 -                               $page.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
38 -                               !leftbtn ) {
39 -
40 -                               backBtn = $( "<a href='javascript:void(0);' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
41 -                                       // If theme is provided, override default inheritance
42 -                                       .attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
43 -                                       .prependTo( $this );
44 -                       }
45 -
46                         // Page title
47                         $this.children( "h1, h2, h3, h4, h5, h6" )
48                                 .addClass( "ui-title" )
49 -- 
50 1.7.4.1
51