表格浮动提示单双引号转义

dep_wangsr
RuoYi 5 years ago committed by Limy
parent 4fdf653e87
commit 9f799ef84e

@ -274,10 +274,11 @@ var table = {
var _target = $.common.isEmpty(target) ? 'copy' : target; var _target = $.common.isEmpty(target) ? 'copy' : target;
if (_value.length > _length) { if (_value.length > _length) {
_text = _value.substr(0, _length) + "..."; _text = _value.substr(0, _length) + "...";
_value = _value.replace(/\'/g,""); _value = _value.replace(/\'/g,"'");
_value = _value.replace(/\"/g,""");
var actions = []; var actions = [];
actions.push($.common.sprintf('<input id="tooltip-show" style="opacity: 0;position: absolute;z-index:-1" type="text" value="%s"/>', _value)); actions.push($.common.sprintf('<input id="tooltip-show" style="opacity: 0;position: absolute;z-index:-1" type="text" value="%s"/>', _value));
actions.push($.common.sprintf("<a href='###' class='tooltip-show' data-toggle='tooltip' data-target='%s' title='%s'>%s</a>", _target, _value, _text)); actions.push($.common.sprintf('<a href="###" class="tooltip-show" data-toggle="tooltip" data-target="%s" title="%s">%s</a>', _target, _value, _text));
return actions.join(''); return actions.join('');
} else { } else {
_text = _value; _text = _value;

Loading…
Cancel
Save