mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
More escapes in share/delete
This commit is contained in:
@@ -22,7 +22,7 @@ $(function () {
|
|||||||
hd = $('.hd', form),
|
hd = $('.hd', form),
|
||||||
btn_ct = $(this).parents('td'),
|
btn_ct = $(this).parents('td'),
|
||||||
repo_id = btn_ct.data('id'),
|
repo_id = btn_ct.data('id'),
|
||||||
repo_name = btn_ct.attr('data-name');
|
repo_name = HTMLescape(btn_ct.attr('data-name'));
|
||||||
var grp_options_ct = $('#share-grp-options');
|
var grp_options_ct = $('#share-grp-options');
|
||||||
if (!$.trim(grp_options_ct.html())) {
|
if (!$.trim(grp_options_ct.html())) {
|
||||||
var grp_options = '<ul class="option-list">';
|
var grp_options = '<ul class="option-list">';
|
||||||
|
@@ -30,7 +30,7 @@ $('.repo-delete-btn').click(function() {
|
|||||||
cfm.css({'left': op.position().left, 'top': op.position().top + op.height() + 2, 'width':202});
|
cfm.css({'left': op.position().left, 'top': op.position().top + op.height() + 2, 'width':202});
|
||||||
}
|
}
|
||||||
var con = $('.con', cfm);
|
var con = $('.con', cfm);
|
||||||
con.html(con.html().replace('%(lib_name)s', '<span class="op-target">' + cfm.parents('td').attr('data-name') + '</span>'));
|
con.html(con.html().replace('%(lib_name)s', '<span class="op-target">' + HTMLescape(cfm.parents('td').attr('data-name')) + '</span>'));
|
||||||
cfm.removeClass('hide');
|
cfm.removeClass('hide');
|
||||||
$('.no',cfm).click(function() {
|
$('.no',cfm).click(function() {
|
||||||
cfm.addClass('hide');
|
cfm.addClass('hide');
|
||||||
|
Reference in New Issue
Block a user