* Fixup: Carelessly swapped collapse and expand callbacks

This commit is contained in:
Morgan Jones
2013-05-10 21:44:53 -06:00
parent b59a2c96db
commit 9756bac253

View File

@ -116,9 +116,9 @@ window.dialog = function(options) {
if($(this).data('collapseExpandCallback')) {
$.proxy($(this).data('collapseExpandCallback'), this)(!collapsed);
} else {
if(collapsed && $(this).data('collapseCallback')) {
if(!collapsed && $(this).data('collapseCallback')) {
$.proxy($(this).data('collapseCallback'), this)();
} else if (!collapsed && $(this).data('expandCallback')) {
} else if (collapsed && $(this).data('expandCallback')) {
$.proxy($(this).data('expandCallback'), this)();
}
}