Commit 48fb21fb authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Don't broke

parent 070eb9d7
......@@ -2,13 +2,12 @@ $(document).ajaxComplete(function() {
if($('#responses-grid table').data('reloadAnyResponse') == 'done') {
return;
}
$('#responses-grid table tbody').find('tr').each(function( index, element) {
var pencil = $(element).find('.button-column,.icon-btn-row').find('a .fa-pencil');
if($(pencil).length) {
var srid = $(element).find('input').eq(0).val();
var newLink = $('<a/>', {
'class': LS.reloadAnyResponse.lsVersion > 3 ? 'btn btn-default btn-sm' : 'btn btn-default btn-xs',
'class': LS.reloadAnyResponse.lsVersion >= 4 ? 'btn btn-default btn-sm' : 'btn btn-default btn-xs',
'href': LS.reloadAnyResponse.baseUrl + srid,
'target': '_blank',
'title': LS.reloadAnyResponse.lang.launch,
......
......@@ -11,6 +11,7 @@ use Yii;
use CActiveRecord;
use Response;
use Survey;
use \reloadAnyResponse\Utilities;
class surveySession extends CActiveRecord
{
......
......@@ -6,7 +6,7 @@
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2018-2021 Denis Chenu <http://www.sondages.pro>
* @license AGPL v3
* @version 5.0.0-beta1
* @version 5.0.0-beta2
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment