From 5a7859830113cec208dda20d7d708ad091ed2a5a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 17 Nov 2010 13:07:32 -0500 Subject: [PATCH 1/3] Added ability to turn off nested lists in a listview auto creating sub pages. --- js/jquery.mobile.listview.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 3e5200b0368..155352c201d 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -14,7 +14,8 @@ $.widget( "mobile.listview", $.mobile.widget, { dividerTheme: "b", splitIcon: "arrow-r", splitTheme: "b", - inset: false + inset: false, + sublists: true }, _create: function() { @@ -146,14 +147,17 @@ $.widget( "mobile.listview", $.mobile.widget, { }, refresh: function( create ) { - this._createSubPages(); - - var o = this.options, + var o = this.options, $list = this.element, self = this, - dividertheme = $list.data( "dividertheme" ) || o.dividerTheme, - li = $list.children( "li" ), - counter = $.support.cssPseudoElement || !$.nodeName( $list[0], "ol" ) ? 0 : 1; + dividertheme = $list.data("dividertheme") || o.dividerTheme, + li = $list.children("li"), + counter = $.support.cssPseudoElement || !$.nodeName($list[0], "ol") ? 0 : 1, + sublists = $list.data("sublists") || o.sublists; + + if ( sublists ) { + this._createSubPages(); + } if ( counter ) { $list.find( ".ui-li-dec" ).remove(); From c88c3937cb292accadab5a11e37953581f6013ac Mon Sep 17 00:00:00 2001 From: mcockrell Date: Wed, 17 Nov 2010 13:15:56 -0500 Subject: [PATCH 2/3] Added ability to turn off nested lists in a listview auto creating sub pages. --- js/jquery.mobile.listview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 155352c201d..6648c160f43 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -14,8 +14,8 @@ $.widget( "mobile.listview", $.mobile.widget, { dividerTheme: "b", splitIcon: "arrow-r", splitTheme: "b", + sublists: true, inset: false, - sublists: true }, _create: function() { From fef8d4bc64119cdb8b0e9aa7f0e399168d6f5732 Mon Sep 17 00:00:00 2001 From: mcockrell Date: Fri, 19 Nov 2010 13:48:12 -0500 Subject: [PATCH 3/3] Fixed bug in the listview with trailing comma. Also fixed makefile to look for proper jquery.mobile.core instead of jquery.mobile --- Makefile | 8 ++++---- js/jquery.mobile.listview.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8a7e151ddf3..9210dc865cd 100755 --- a/Makefile +++ b/Makefile @@ -55,19 +55,19 @@ clean: @@rm -rf ${DIR}* css: - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSS} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSS} @@cat ${CSSFILES} >> ${CSS} cssmin: css - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSSMIN} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSSMIN} @@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN} mobile: - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${MAX} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MAX} @@cat ${FILES} >> ${MAX} min: mobile - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${MIN} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MIN} @@java -jar build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp @@cat ${MIN}.tmp >> ${MIN} @@rm -f ${MIN}.tmp diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 6648c160f43..bfe58167ef6 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -15,7 +15,7 @@ $.widget( "mobile.listview", $.mobile.widget, { splitIcon: "arrow-r", splitTheme: "b", sublists: true, - inset: false, + inset: false }, _create: function() {