checklist test

This commit is contained in:
vitalets
2012-11-25 13:22:27 +04:00
parent 0f795a3882
commit 0487380535
7 changed files with 138 additions and 39 deletions

@ -1,7 +1,7 @@
var timeout = 200;
$(function () {
$.mockjaxSettings.responseTime = 50;
$.mockjaxSettings.responseTime = 50;
$.mockjax({
url: 'post.php',
@ -23,6 +23,38 @@ $(function () {
this.responseText = settings;
}
});
window.groups = {
0: 'Guest',
1: 'Service',
2: 'Customer',
3: 'Operator',
4: 'Support',
5: 'Admin',
6: '',
'': 'Nothing'
};
//groups as array
window.groupsArr = [];
for(var i in groups) {
groupsArr.push({value: i, text: groups[i]});
}
window.size = groupsArr.length;
$.mockjax({
url: 'groups.php',
responseText: groups
});
$.mockjax({
url: 'groups-error.php',
status: 500,
responseText: 'Internal Server Error'
});
});
// usefull functions