Skip to content

Commit

Permalink
API Explorer: Make return value sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Dec 14, 2016
1 parent 9575981 commit 0a5c58d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/CRM/Admin/Page/APIExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@
}
$('#api-params').prepend($(returnTpl({title: title, required: action == 'getvalue'})));
$('#api-return-value').crmSelect2(params);
$("#api-return-value").select2("container").find("ul.select2-choices").sortable({
containment: 'parent',
start: function() { $("#api-return-value").select2("onSortStart"); },
update: function() { $("#api-return-value").select2("onSortEnd"); }
});
}

/**
Expand Down

0 comments on commit 0a5c58d

Please sign in to comment.