Fix deprecated size() in quick-post-controls.js

This commit is contained in:
discomrade 2022-01-19 03:55:00 -01:00
parent 2f64d7edff
commit 231321f2c1

View File

@ -39,7 +39,7 @@ $(document).ready(function(){
' <input type="submit" name="report" value="'+_('Report')+'">' +
'</div>' +
'</form>');
if($('form[name="post"]:first').size()){
if($('form[name="post"]:first').length){
var board=$(this).parent().parent().parent().attr("data-board");
post_form
.attr('action', $('form[name="post"]:first').attr('action'))