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

Commit

Permalink
Don't remove active button classes - screws up lots - closes #50 and #54
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Jun 11, 2012
1 parent 3b70062 commit 6faf4e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions js/jquery.mobile.simpledialog2.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@
if ( self.options.resizeListener === true ) { $(window).unbind('resize.simpledialog'); } if ( self.options.resizeListener === true ) { $(window).unbind('resize.simpledialog'); }
} }


$.mobile.activePage.find('.ui-btn-active').removeClass('ui-btn-active');

if ( self.isDialog === true || self.options.animate === true ) { if ( self.isDialog === true || self.options.animate === true ) {
setTimeout("$.mobile.sdCurrentDialog.destroy();", 1000); setTimeout("$.mobile.sdCurrentDialog.destroy();", 1000);
} else { } else {
Expand Down
18 changes: 10 additions & 8 deletions tests/2dev.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ <h2>Fullscreen Mode</h2>
<p>The world looks mighty good to me, cause Tootsie Rolls are all I see. Whatever it is I think I see, becomes a Tootsie Roll to me! Tootsie Roll how I love your chocolatey chew, Tootsie Roll I think I'm in love with you. Whatever it is I think I see, becomes a Tootsie Roll to me!</p> <p>The world looks mighty good to me, cause Tootsie Rolls are all I see. Whatever it is I think I see, becomes a Tootsie Roll to me! Tootsie Roll how I love your chocolatey chew, Tootsie Roll I think I'm in love with you. Whatever it is I think I see, becomes a Tootsie Roll to me!</p>
<p>You clicked: <span id="simpleboolout"></span></p> <p>You clicked: <span id="simpleboolout"></span></p>
<script type="text/javascript"> <script type="text/javascript">
x = function () { console.log(this); }


$(document).delegate('#simplebool', 'click', function() { $(document).delegate('#simplebool', 'click', function() {
$('<div>').simpledialog2({ $('<div>').simpledialog2({
mode : 'blank', mode : 'button',

//themeDialog: 'd',
headerText: 'Bullshit', headerText: 'Bullshit',
headerClose: true, headerClose: true,


Expand All @@ -58,15 +59,16 @@ <h2>Fullscreen Mode</h2>
'buttons' : { 'buttons' : {
'ok': { 'ok': {
'args' : ['something','else'], 'args' : ['something','else'],
'icon' : false,
'click': function (e) { 'click': function (e) {
console.log(this.buttonPromptText.text()); //console.log(this.buttonPromptText.text());
console.log(arguments); //console.log(arguments);
console.log(e); //console.log(e);
return true; return true;
} }
}, },
'cancel': { 'cancel': {
'click': function () { return true; } 'click': x
} }
}, },


Expand All @@ -79,8 +81,8 @@ <h2>Fullscreen Mode</h2>
//fullScreenForce: true, //fullScreenForce: true,
blankContent : blankContent :
"<ul data-role='listview'><li>Some</li><li>List</li><li>Items</li></ul><a rel='close' data-role='button' href='#'>Close</a>", "<ul data-role='listview'><li>Some</li><li>List</li><li>Items</li></ul><a rel='close' data-role='button' href='#'>Close</a>",
callbackOpenArgs: ['some', 'shit'], //callbackOpenArgs: ['some', 'shit'],
callbackOpen: function () { console.log(this); console.log(arguments); }, callbackClose: function () { console.log(this); console.log(arguments); },


}) })


Expand Down

0 comments on commit 6faf4e8

Please sign in to comment.