Skip to content

Commit

Permalink
Dev: Don't parse json
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 28, 2016
1 parent f32aecf commit b8e8ff4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/admin/participantpanel.js
Expand Up @@ -42,8 +42,7 @@ LS.CPDB = (function() {
* @param {string} page - Modal HTML fetched with Ajax
* @todo
*/
var firstSuccess = function(page){
var json = JSON.parse(page);
var firstSuccess = function(json){
$(baseModal).find('.modal-content').html(json.result);
$(baseModal).find('.'+actionButtonClass).on('click', function(e) {
e.preventDefault();
Expand Down

0 comments on commit b8e8ff4

Please sign in to comment.