@@ -209,7 +209,7 @@ function template_main()
209209 // Show the topic information - icon, subject, etc.
210210 echo '
211211 <div id="forumposts">
212- <form action=" ' , Config::$ scripturl , '?action=quickmod2;topic= ' , Utils::$ context ['current_topic ' ], '. ' , Utils::$ context ['start ' ], '" method="post" accept-charset="UTF-8" name="quickModForm" id="quickModForm" onsubmit="return oQuickModify.bInEditMode ? oQuickModify.modifySave( \'' . Utils:: $ context [ ' session_id ' ] . '\' , \'' . Utils:: $ context [ ' session_var ' ] . '\' ) : false" > ' ;
212+ <form action=" ' , Config::$ scripturl , '?action=quickmod2;topic= ' , Utils::$ context ['current_topic ' ], '. ' , Utils::$ context ['start ' ], '" method="post" accept-charset="UTF-8" name="quickModForm" id="quickModForm"> ' ;
213213
214214 Utils::$ context ['ignoredMsgs ' ] = array ();
215215 Utils::$ context ['removableMessageIDs ' ] = array ();
@@ -327,30 +327,16 @@ function template_main()
327327 }
328328
329329 echo '
330- var oQuickModify = new QuickModify({
330+ new QuickModify({
331331 sScriptUrl: smf_scripturl,
332+ sFormName: \'quickModForm \',
332333 sClassName: \'quick_edit \',
333334 bShowModify: ' , Config::$ modSettings ['show_modify ' ] ? 'true ' : 'false ' , ',
334335 iTopicId: ' , Utils::$ context ['current_topic ' ], ',
335- sTemplateBodyEdit: ' , Utils::escapeJavaScript ('
336- <div id="quick_edit_body_container">
337- <div id="error_box" class="error"></div>
338- <textarea class="editor" name="message" rows="12">%body%</textarea><br>
339- <input type="hidden" name=" ' . Utils::$ context ['session_var ' ] . '" value=" ' . Utils::$ context ['session_id ' ] . '">
340- <input type="hidden" name="topic" value=" ' . Utils::$ context ['current_topic ' ] . '">
341- <input type="hidden" name="msg" value="%msg_id%">
342- <div class="righttext quickModifyMargin">
343- <input type="submit" name="post" value=" ' . Lang::$ txt ['save ' ] . '" onclick="return oQuickModify.modifySave( \'' . Utils::$ context ['session_id ' ] . '\', \'' . Utils::$ context ['session_var ' ] . '\');" class="button"> ' . (Utils::$ context ['show_spellchecking ' ] ? ' <input type="button" value=" ' . Lang::$ txt ['spell_check ' ] . '" onclick="spellCheck( \'quickModForm \', \'message \');" class="button"> ' : '' ) . ' <input type="submit" name="cancel" value=" ' . Lang::$ txt ['modify_cancel ' ] . '" onclick="return oQuickModify.modifyCancel();" class="button">
344- </div>
345- </div> ' ), ',
346- sTemplateSubjectEdit: ' , Utils::escapeJavaScript ('<input type="text" name="subject" value="%subject%" size="80" maxlength="80"> ' ), ',
347- sTemplateBodyNormal: ' , Utils::escapeJavaScript ('%body% ' ), ',
348- sTemplateSubjectNormal: ' , Utils::escapeJavaScript ('<a href=" ' . Config::$ scripturl . '?topic= ' . Utils::$ context ['current_topic ' ] . '.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%</a> ' ), ',
349- sTemplateTopSubject: ' , Utils::escapeJavaScript ('%subject% ' ), ',
350- sTemplateReasonEdit: ' , Utils::escapeJavaScript (Lang::$ txt ['reason_for_edit ' ] . ': <input type="text" name="modify_reason" value="%modify_reason%" size="80" maxlength="80" class="quickModifyMargin"> ' ), ',
351- sTemplateReasonNormal: ' , Utils::escapeJavaScript ('%modify_text ' ), ',
352- sErrorBorderStyle: ' , Utils::escapeJavaScript ('1px solid red ' ), (Utils::$ context ['can_reply ' ]) ? ',
353- sFormRemoveAccessKeys: \'postmodify \'' : '' , '
336+ sSaveButtonText: ' , Utils::escapeJavaScript (Lang::getTxt ('save ' , file: 'General ' )), ',
337+ sCancelButtonText: ' , Utils::escapeJavaScript (Lang::getTxt ('modify_cancel ' , file: 'General ' )), ',
338+ sEditReasonText: ' , Utils::escapeJavaScript (Lang::getTxt ('reason_for_edit ' , file: 'General ' )) . ',
339+ sErrorBorderStyle: ' , Utils::escapeJavaScript ('1px solid red ' ), '
354340 });
355341
356342 new JumpTo({
0 commit comments