Fix bug.
This commit is contained in:
parent
5982ade025
commit
fb56f5bd86
|
@ -918,6 +918,14 @@
|
||||||
$("#sub_annc_title_trans_text").html($(this).val());
|
$("#sub_annc_title_trans_text").html($(this).val());
|
||||||
})
|
})
|
||||||
$("#bulletin_is_external_link").trigger('change');
|
$("#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()
|
add_click_for_privacy()
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue