QuickReply Reloaded

Warn before submitting reply NOT on the last page - QuickReply Reloaded

Warn before submitting reply NOT on the last page

by HaloPolicja » Mon Aug 15, 2016 11:07 am

Hi and thank you for this awesome extension! My suggestion is to add option to warn users before they reply not on the last page in a topic. Thank you in advance.
HaloPolicja
Registered User
Posts: 38
Joined: Tue Aug 02, 2016 1:02 pm
Contact:

Re: Warn before submitting reply NOT on the last page

by cichy_ludek » Fri Oct 07, 2016 11:32 pm

Hi. I wrote this to my own forum:

Code: Select all

   $("#message-box textarea.inputbox").on("focus",function(){
   
      if ($("div.action-bar.bottom .pagination ul li:last").hasClass("next")
         &&$(".nieostatnia_strona").length==0) 
            $(".submit-buttons").append($("<div/>",{'class':"nieostatnia_strona",html:"<b>Przypomnienie</b>: to nie jest ostania strona tematu."}));
         
      });

You must put it before this lines:

Code: Select all

})(jQuery, window, document);

In file ..\quickreply\styles\prosilver\template\quickreply_core.js
cichy_ludek
Registered User
Posts: 72
Joined: Fri Jun 17, 2016 12:31 pm