mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-28 09:54:44 +00:00
Merge pull request #1838 from adamvaughan/issue1836
Fix for issue 1836 - List view filter placeholder data attribute is not used. Edits coming after this commit.
This commit is contained in:
commit
60f80b9473
1 changed files with 3 additions and 1 deletions
|
|
@ -17,10 +17,12 @@ $( ":jqmData(role='listview')" ).live( "listviewcreate", function() {
|
|||
return;
|
||||
}
|
||||
|
||||
var placeholder = list.data("filter-placeholder") ? list.data("filter-placeholder") : listview.options.filterPlaceholder;
|
||||
|
||||
var wrapper = $( "<form>", { "class": "ui-listview-filter ui-bar-c", "role": "search" } ),
|
||||
|
||||
search = $( "<input>", {
|
||||
placeholder: listview.options.filterPlaceholder
|
||||
placeholder: placeholder
|
||||
})
|
||||
.attr( "data-" + $.mobile.ns + "type", "search" )
|
||||
.jqmData( 'lastval', "" )
|
||||
|
|
|
|||
Loading…
Reference in a new issue