Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't remove active button classes - screws up lots - closes #50 and #54

  • Loading branch information...
commit 6faf4e802b1f673cab2913de5ff93030d81c0d2f 1 parent 3b70062
@jtsage authored
Showing with 10 additions and 10 deletions.
  1. +0 −2  js/jquery.mobile.simpledialog2.js
  2. +10 −8 tests/2dev.html
View
2  js/jquery.mobile.simpledialog2.js
@@ -313,8 +313,6 @@
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 ) {
setTimeout("$.mobile.sdCurrentDialog.destroy();", 1000);
} else {
View
18 tests/2dev.html
@@ -43,11 +43,12 @@ <h1 id="jqm-logo"><img src="/jQM-SimpleDialog/demos/jquery-logo-sd.png" alt="jQu
<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>
<script type="text/javascript">
+ x = function () { console.log(this); }
$(document).delegate('#simplebool', 'click', function() {
$('<div>').simpledialog2({
- mode : 'blank',
-
+ mode : 'button',
+ //themeDialog: 'd',
headerText: 'Bullshit',
headerClose: true,
@@ -58,15 +59,16 @@ <h1 id="jqm-logo"><img src="/jQM-SimpleDialog/demos/jquery-logo-sd.png" alt="jQu
'buttons' : {
'ok': {
'args' : ['something','else'],
+ 'icon' : false,
'click': function (e) {
- console.log(this.buttonPromptText.text());
- console.log(arguments);
- console.log(e);
+ //console.log(this.buttonPromptText.text());
+ //console.log(arguments);
+ //console.log(e);
return true;
}
},
'cancel': {
- 'click': function () { return true; }
+ 'click': x
}
},
@@ -79,8 +81,8 @@ <h1 id="jqm-logo"><img src="/jQM-SimpleDialog/demos/jquery-logo-sd.png" alt="jQu
//fullScreenForce: true,
blankContent :
"<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'],
- callbackOpen: function () { console.log(this); console.log(arguments); },
+ //callbackOpenArgs: ['some', 'shit'],
+ callbackClose: function () { console.log(this); console.log(arguments); },
})
Please sign in to comment.
Something went wrong with that request. Please try again.