fix checklist checked display for single value

This commit is contained in:
vitalets
2013-04-02 20:55:15 +04:00
parent c7a223be2f
commit 500223ca92
3 changed files with 15 additions and 1 deletions

@ -61,6 +61,17 @@ $(function () {
e.remove();
start();
}, timeout);
});
});
test("should show checked for single value", function () {
var e = $('<a href="#" data-type="checklist" data-value="1"></a>').appendTo('#qunit-fixture').editable({
pk: 1,
source: groupsArr
});
e.click();
var p = tip(e);
equal(p.find('input[type="checkbox"]:checked').length, 1, 'checked count ok');
});
});