Forum
13:45
10/08/2009
Hello Tony,
it was posted multiple times bug reports about the problem where dialogs having modal:true option (like form editing) worked incorrect. For example if one uses jQuery UI Datepicker with the option changeMonth: true or with the option changeYear: true then the corresponding combo-boxes don't work if modal:true used. I analysed the problem detailed in the "UPDATED 2" part of my answer.
The reason of the problem is wrong testing whether the user clicks inside of modal form or not. The current code of $.fn.jqm tests just that e.target (with e as event on the click) is child of the form. On the other side some jQuery UI controls uses absolute positioned elements which are children of the body of the page.
I suggest to fix the problem in following way: The line
of jqModal.js module can be replaced to the following
var h=H[A[A.length-1]],
r=(!$(e.target).parents('.jqmID'+h.s)[0]);
if(r) {
// e.target could be inside of element with absolute position like menu item
// in the case parents call above will don't find the modal dialog
// To fix the problem we verify additionally whether e.target is inside of
// an element having the class 'jqmID'+h.s
$('.jqmID'+h.s).each(function() {
var $self = $(this), offset = $self.offset();
if (offset.top <= e.pageY && e.pageY <= offset.top + $self.height() &&
offset.left <= e.pageX && e.pageX <= offset.left + $self.width()) {
r = false; // e.target is do inside of the dialog
return false; // stop the loop
}
});
f(h);
}
return !r;
},
Best regards
Oleg
11:22
Moderators
30/10/2007
Hello Oleg,
Thanks. I need to check this myself
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
17:08
Moderators
30/10/2007
Hello Oleg,
Thanks. Will have not forgotten this and one more too.
I just need a detailed checking.
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
11:56
Moderators
30/10/2007
Hello Oleg,
Thanks. Fixed in GitHub
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
49 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66