mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix function um_apply_conditions. An error appears with jQuery v2.1.3
This commit is contained in:
@@ -206,8 +206,14 @@ function um_in_array(needle, haystack, strict){
|
||||
*/
|
||||
function um_apply_conditions($dom, is_single_update) {
|
||||
var operators = ['empty', 'not empty', 'equals to', 'not equals', 'greater than', 'less than', 'contains'];
|
||||
if (!$dom.parents('.um-field[data-key]').length) {
|
||||
return;
|
||||
}
|
||||
var key = $dom.parents('.um-field[data-key]').data('key');
|
||||
var conditions = um_field_conditions[key];
|
||||
if (typeof (conditions) === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
var live_field_value = um_get_field_data($dom);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user