This commit is contained in:
BoHung Chiu 2022-11-18 20:44:47 +08:00
parent 5982ade025
commit fb56f5bd86
1 changed files with 8 additions and 0 deletions

View File

@ -918,6 +918,14 @@
$("#sub_annc_title_trans_text").html($(this).val());
})
$("#bulletin_is_external_link").trigger('change');
$('#<%=f.object_name.gsub(/[\[\]]/,'_')%>_external_link').on('paste', function(e){
var pastedData = e.originalEvent.clipboardData.getData('text');
var _this = $(this);
pastedData = pastedData.replace(new RegExp('^http(s|)://' + window.location.host), '');
window.setTimeout(function(){
_this.val(pastedData);
}, 0);
});
add_click_for_privacy()
});
</script>