| changeset 1503: |
1b77c5fa11d3 |
| parent 1500: | 5f0aa2b71832 |
| child 1504: | 810c382534b5 |
| author: |
Johan Euphrosine <proppy@aminche.com> |
| date: |
Fri Jun 26 11:20:23 2009 +0200 (7 months ago) |
| files: |
jpoker/js/jquery.jpoker.js jpoker/js/test-jpoker.js |
| description: |
add jpoker_jquery_ui class to jpoker.plugins.signup dialog |
--- a/jpoker/js/jquery.jpoker.js Thu Jun 25 14:41:27 2009 +0200
+++ b/jpoker/js/jquery.jpoker.js Fri Jun 26 11:20:23 2009 +0200
@@ -5007,7 +5007,7 @@
return this.each(function() {
var $this = $(this);
var id = jpoker.uid();
- var element = $('<div class=\'jpoker_widget jpoker_signup\' id=\'' + id + '\'></div>').appendTo($this);
+ var element = $('<div class=\'jpoker_widget jpoker_signup jpoker_jquery_ui\' id=\'' + id + '\'></div>').appendTo($this);
var updated = function(server, what, packet) {
var element = document.getElementById(id);
if(element) {
@@ -5049,7 +5049,7 @@
draggable: false,
modal: true,
width: '400px',
- height: 'auto'
+ height: '300px'
}
}, jpoker.defaults);
--- a/jpoker/js/test-jpoker.js Thu Jun 25 14:41:27 2009 +0200
+++ b/jpoker/js/test-jpoker.js Fri Jun 26 11:20:23 2009 +0200
@@ -8623,7 +8623,7 @@
});
test("jpoker.plugins.signup", function() {
- expect(13);
+ expect(14);
stop();
@@ -8641,6 +8641,7 @@
var place = $('#main');
place.jpoker('signup', 'url');
equals($('.jpoker_signup.ui-dialog-content').length, 1, 'signup div');
+ ok($('.jpoker_signup').hasClass('jpoker_jquery_ui'), 'jquery_jquery_ui');
equals($('.jpoker_signup input').length, 5, 'input');
equals($('.jpoker_signup label').length, 4, 'label');
equals($('.jpoker_signup input[name=login]').length, 1, 'login');