Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Added ability to set button name via object prop. #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions demos2/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ <h2>Available Options</h2>
<dl data-role="none" class="option"><dt>Modes:</dt><dd>button object</dd></dl>
<p class="desc">The HTML ID of the button. If false, one is generated.</p>
</li>
<li><h3>text</h3>
<dl data-role="none" class="option"><dt>Type:</dt><dd>String</td></dl>
<dl data-role="none" class="option"><dt>Default:</dt><dd>inherited</dd></dl>
<dl data-role="none" class="option"><dt>Modes:</dt><dd>button object</dd></dl>
<p class="desc">The text of the button. If missing, object name is used.</p>
</li>
<li><h3>theme</h3>
<dl data-role="none" class="option"><dt>Type:</dt><dd>String</dd></dl>
<dl data-role="none" class="option"><dt>Default:</dt><dd>inherited</dd></dl>
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.simpledialog2.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
close : true
}, props);

self.butObj.push($("<a href='#'>"+name+"</a>")
self.butObj.push($("<a href='#'>"+props.text+"</a>")
.appendTo(pickerChoice)
.attr('id', props.id)
.buttonMarkup({
Expand Down