מדיה ויקי:Gadget-mobile-feedback.js: הבדלים בין גרסאות בדף

קפיצה לניווט קפיצה לחיפוש
אין תקציר עריכה
(יצירת דף עם התוכן "if (mw.util.getParamValue('wpSummary')) { $("textarea").val('=='+mw.util.getParamValue('wpSummary')+'=='+'\n'+mw.util.getParamValue('wpTextbox1')); $(".conti...")
 
אין תקציר עריכה
שורה 8: שורה 8:
{
{
   $('<h2 class="section_heading" id="feedback_heading"><span class="mw-headline">משוב</span></h2><div class="content_block" id="feedback_block"><form id="commentbox" method="post" action="'+mw.config.get('wgServer') + mw.config.get('wgScriptPath')+'/index.php?section=new&action=edit&preview=yes&title='+mw.util.wikiUrlencode('שיחה:'+mw.config.get('wgTitle'))+'"><input type="text" name="wpSummary" id="feedbackTitle" placeholder="כותרת המשוב" maxlength="50" /><br /><textarea name="wpTextbox1" rows="7" cols="80" id="feedbackTextArea" placeholder="כאן ניתן לכתוב משוב על הערך"></textarea><br /><input type="submit" id="feedbackBtn" value="שליחה" /></form></div>').insertBefore($('#mw-mf-last-modified'));
   $('<h2 class="section_heading" id="feedback_heading"><span class="mw-headline">משוב</span></h2><div class="content_block" id="feedback_block"><form id="commentbox" method="post" action="'+mw.config.get('wgServer') + mw.config.get('wgScriptPath')+'/index.php?section=new&action=edit&preview=yes&title='+mw.util.wikiUrlencode('שיחה:'+mw.config.get('wgTitle'))+'"><input type="text" name="wpSummary" id="feedbackTitle" placeholder="כותרת המשוב" maxlength="50" /><br /><textarea name="wpTextbox1" rows="7" cols="80" id="feedbackTextArea" placeholder="כאן ניתן לכתוב משוב על הערך"></textarea><br /><input type="submit" id="feedbackBtn" value="שליחה" /></form></div>').insertBefore($('#mw-mf-last-modified'));
   $('#feedback_heading').click(function(){$(this).toggleClass('openSection'); $('#feedback_block').toggleClass('openSection')});
   $('#feedback_heading').click(function(){$(this).toggleClass('openSection');  
   $('#commentbox').submit(function(){
   $('#commentbox').submit(function(){
     if(!($('#feedbackTextArea').attr('value').indexOf('~~'+'~~')+1)) $('#feedbackTextArea').attr('value',$('#feedbackTextArea').attr('value')+'{{'+'משוב}} ~~'+'~~');//sign in the end
     if(!($('#feedbackTextArea').attr('value').indexOf('~~'+'~~')+1)) $('#feedbackTextArea').attr('value',$('#feedbackTextArea').attr('value')+'{{'+'משוב}} ~~'+'~~');//sign in the end

תפריט ניווט