Added jquery ui autocomplete.
This commit is contained in:
parent
d3b423dcaf
commit
34473a6d87
2 changed files with 1954 additions and 204 deletions
1754
app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js
vendored
1754
app/assets/javascripts/app/lib/core/jquery-ui-1.11.4.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -258,7 +258,7 @@ test( "form params check", function() {
|
||||||
active1: true,
|
active1: true,
|
||||||
active2: false,
|
active2: false,
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ test( "form dependend fields check", function() {
|
||||||
date3: '2015-01-11',
|
date3: '2015-01-11',
|
||||||
date4: undefined,
|
date4: undefined,
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
|
|
||||||
errors = form.validate(params)
|
errors = form.validate(params)
|
||||||
test_errors = {
|
test_errors = {
|
||||||
|
@ -518,7 +518,7 @@ test( "form dependend fields check", function() {
|
||||||
date3: '2015-01-11',
|
date3: '2015-01-11',
|
||||||
date4: undefined,
|
date4: undefined,
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
});
|
});
|
||||||
|
|
||||||
test("form handler check with and without fieldset", function() {
|
test("form handler check with and without fieldset", function() {
|
||||||
|
@ -593,7 +593,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'a',
|
select1: 'a',
|
||||||
select2: '1',
|
select2: '1',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
el.find('[name="select1"]').val('b')
|
el.find('[name="select1"]').val('b')
|
||||||
el.find('[name="select1"]').trigger('change')
|
el.find('[name="select1"]').trigger('change')
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
|
@ -601,7 +601,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'b',
|
select1: 'b',
|
||||||
select2: '3',
|
select2: '3',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
el.find('[name="select1"]').val('a')
|
el.find('[name="select1"]').val('a')
|
||||||
el.find('[name="select1"]').trigger('change')
|
el.find('[name="select1"]').trigger('change')
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
|
@ -609,7 +609,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'a',
|
select1: 'a',
|
||||||
select2: '1',
|
select2: '1',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
|
|
||||||
// test with noFieldset
|
// test with noFieldset
|
||||||
el.empty()
|
el.empty()
|
||||||
|
@ -638,7 +638,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'a',
|
select1: 'a',
|
||||||
select2: '1',
|
select2: '1',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
el.find('[name="select1"]').val('b')
|
el.find('[name="select1"]').val('b')
|
||||||
el.find('[name="select1"]').trigger('change')
|
el.find('[name="select1"]').trigger('change')
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
|
@ -646,7 +646,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'b',
|
select1: 'b',
|
||||||
select2: '3',
|
select2: '3',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
el.find('[name="select1"]').val('a')
|
el.find('[name="select1"]').val('a')
|
||||||
el.find('[name="select1"]').trigger('change')
|
el.find('[name="select1"]').trigger('change')
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
|
@ -654,7 +654,7 @@ test( "form handler check with and without fieldset", function() {
|
||||||
select1: 'a',
|
select1: 'a',
|
||||||
select2: '1',
|
select2: '1',
|
||||||
}
|
}
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -760,7 +760,7 @@ test( "form postmaster filter", function() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
el.find('[name="set::x-zammad-ticket-priority_id::value"]').closest('.js-filterElement').find('.js-remove').click()
|
el.find('[name="set::x-zammad-ticket-priority_id::value"]').closest('.js-filterElement').find('.js-remove').click()
|
||||||
el.find('[name="set::x-zammad-ticket-customer::value"]').closest('.js-filterElement').find('.js-remove').click()
|
el.find('[name="set::x-zammad-ticket-customer::value"]').closest('.js-filterElement').find('.js-remove').click()
|
||||||
App.Delay.set(function() {
|
App.Delay.set(function() {
|
||||||
|
@ -789,7 +789,7 @@ test( "form postmaster filter", function() {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
deepEqual( params, test_params, 'form param check' );
|
deepEqual(params, test_params, 'form param check')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
1000
|
1000
|
||||||
|
@ -818,13 +818,13 @@ test( "form selector", function() {
|
||||||
input2: 'some name66',
|
input2: 'some name66',
|
||||||
};
|
};
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
deepEqual( params, test_params, 'form param check via $("#form")' );
|
deepEqual(params, test_params, 'form param check via $("#form")')
|
||||||
|
|
||||||
params = App.ControllerForm.params(el.find('input'))
|
params = App.ControllerForm.params(el.find('input'))
|
||||||
deepEqual( params, test_params, 'form param check via $("#form").find("input")' );
|
deepEqual(params, test_params, 'form param check via $("#form").find("input")')
|
||||||
|
|
||||||
params = App.ControllerForm.params(el.parent())
|
params = App.ControllerForm.params(el.parent())
|
||||||
deepEqual( params, test_params, 'form param check via $("#form").parent()' );
|
deepEqual(params, test_params, 'form param check via $("#form").parent()')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -857,7 +857,7 @@ test( "form required_if + shown_if", function() {
|
||||||
active: true,
|
active: true,
|
||||||
};
|
};
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
deepEqual( params, test_params, 'form param check via $("#form")' );
|
deepEqual(params, test_params, 'form param check via $("#form")')
|
||||||
equal(el.find('[name="input2"]').attr('required'), 'required', 'check required attribute of input2 ')
|
equal(el.find('[name="input2"]').attr('required'), 'required', 'check required attribute of input2 ')
|
||||||
equal(el.find('[name="input2"]').is(":visible"), true, 'check visible attribute of input2 ')
|
equal(el.find('[name="input2"]').is(":visible"), true, 'check visible attribute of input2 ')
|
||||||
equal(el.find('[name="input3"]').attr('required'), 'required', 'check required attribute of input3 ')
|
equal(el.find('[name="input3"]').attr('required'), 'required', 'check required attribute of input3 ')
|
||||||
|
@ -874,7 +874,7 @@ test( "form required_if + shown_if", function() {
|
||||||
active: false,
|
active: false,
|
||||||
};
|
};
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
deepEqual( params, test_params, 'form param check via $("#form")' );
|
deepEqual(params, test_params, 'form param check via $("#form")')
|
||||||
equal(el.find('[name="input2"]').attr('required'), undefined, 'check required attribute of input2')
|
equal(el.find('[name="input2"]').attr('required'), undefined, 'check required attribute of input2')
|
||||||
equal(el.find('[name="input2"]').is(":visible"), false, 'check visible attribute of input2')
|
equal(el.find('[name="input2"]').is(":visible"), false, 'check visible attribute of input2')
|
||||||
equal(el.find('[name="input3"]').is(":visible"), false, 'check visible attribute of input3')
|
equal(el.find('[name="input3"]').is(":visible"), false, 'check visible attribute of input3')
|
||||||
|
@ -890,7 +890,7 @@ test( "form required_if + shown_if", function() {
|
||||||
active: true,
|
active: true,
|
||||||
};
|
};
|
||||||
params = App.ControllerForm.params(el)
|
params = App.ControllerForm.params(el)
|
||||||
deepEqual( params, test_params, 'form param check via $("#form")' );
|
deepEqual(params, test_params, 'form param check via $("#form")')
|
||||||
equal(el.find('[name="input2"]').attr('required'), 'required', 'check required attribute of input2')
|
equal(el.find('[name="input2"]').attr('required'), 'required', 'check required attribute of input2')
|
||||||
equal(el.find('[name="input2"]').is(":visible"), true, 'check visible attribute of input2')
|
equal(el.find('[name="input2"]').is(":visible"), true, 'check visible attribute of input2')
|
||||||
equal(el.find('[name="input3"]').attr('required'), 'required', 'check required attribute of input3')
|
equal(el.find('[name="input3"]').attr('required'), 'required', 'check required attribute of input3')
|
||||||
|
|
Loading…
Reference in a new issue