diff --git a/public_html/scripts/admin/browse.js b/public_html/scripts/admin/browse.js index 524f089..b90b082 100644 --- a/public_html/scripts/admin/browse.js +++ b/public_html/scripts/admin/browse.js @@ -14,7 +14,7 @@ $(document).ready(function(){ $('ul.sf-menu').superfish({ speed:'fast' - }); + }); $("#selectall").click(function(){ $('.cbResponseMarker').attr('checked',$(this).attr('checked')); }); @@ -23,7 +23,7 @@ $(document).ready(function(){ $("#limit").val(''); $("#browseresults").submit(); }); - + $('#browseresponses').qtip({ content:{ text:$('#browselangpopup') @@ -54,12 +54,12 @@ $(document).ready(function(){ // Fix the heigh of the cell $('.browsetable td').each(function(){ - if ($(this).text().trim().length > 30){ + if ($.trim($(this).text()).length > 30){ $(this).html(""+$(this).html()+""); } }); $('.browsetable th strong').each(function(){ - if ($(this).text().trim().length > 30){ + if ($.trim($(this).text()).length > 30){ $(this).addClass("content"); $(this).attr("title",$(this).text()); } @@ -231,7 +231,7 @@ Dowload a file from a response */ function getFile(id, field, filename) { - sendPost(siteURL + "/admin/responses/" + surveyID + "/grid", + sendPost(siteURL + "/admin/responses/" + surveyID + "/grid", new Array( 'id', 'fieldname', @@ -253,13 +253,13 @@ Get an archive containing all the file from a response */ function getArchive(id) { - sendPost(siteURL + "/admin/responses/" + surveyID + "/grid", + sendPost(siteURL + "/admin/responses/" + surveyID + "/grid", new Array( 'oper', 'id'), new Array( 'downloadarchive', - id) + id) ); }