Commons:User scripts/users namespace/reports/User:Rjd0060/otrs-pending.js

This is the report page for User:Rjd0060/otrs-pending.js. It is bot-maintained. All manual changes might be overwritten.

jshint edit

  1. ISSUE: line 1 character 31: The array literal notation [] is preferable. - Evidence: var UrlParameters = new Array ();
  2. ISSUE: line 22 character 2: Missing semicolon. - Evidence: }
  3. ISSUE: line 33 character 6: Missing semicolon. - Evidence: }
  4. ISSUE: line 34 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value += "\n\n== Pending permission for image(s) ==\n\nHello. On following image(s), you have added the {{tl|otrs pending}} template:\n\n" + noticket.submit.generatelist() + "\nUnfortunately, after conducting a search, I could not locate the ticket containing the permission to use the image(s). Please respond \'\'\'on my talk page\'\'\' if you have the ticket number, or if you would like to send me the permission. Please note that if we do not receive permission for the image(s), they will likely be deleted within 7-10 days. Thanks! \~\~\~\~"; //New text in the edit form.
  5. ISSUE: line 34 character 587: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\n\n== Pending permission for image(s) ==\n\nHello. On following image(s), you have added the {{tl|otrs pending}} template:\n\n" + noticket.submit.generatelist() + "\nUnfortunately, after conducting a search, I could not locate the ticket containing the permission to use the image(s). Please respond \'\'\'on my talk page\'\'\' if you have the ticket number, or if you would like to send me the permission. Please note that if we do not receive permission for the image(s), they will likely be deleted within 7-10 days. Thanks! \~\~\~\~"; //New text in the edit form.
  6. ISSUE: line 34 character 589: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\n\n== Pending permission for image(s) ==\n\nHello. On following image(s), you have added the {{tl|otrs pending}} template:\n\n" + noticket.submit.generatelist() + "\nUnfortunately, after conducting a search, I could not locate the ticket containing the permission to use the image(s). Please respond \'\'\'on my talk page\'\'\' if you have the ticket number, or if you would like to send me the permission. Please note that if we do not receive permission for the image(s), they will likely be deleted within 7-10 days. Thanks! \~\~\~\~"; //New text in the edit form.
  7. ISSUE: line 34 character 591: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\n\n== Pending permission for image(s) ==\n\nHello. On following image(s), you have added the {{tl|otrs pending}} template:\n\n" + noticket.submit.generatelist() + "\nUnfortunately, after conducting a search, I could not locate the ticket containing the permission to use the image(s). Please respond \'\'\'on my talk page\'\'\' if you have the ticket number, or if you would like to send me the permission. Please note that if we do not receive permission for the image(s), they will likely be deleted within 7-10 days. Thanks! \~\~\~\~"; //New text in the edit form.
  8. ISSUE: line 34 character 593: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\n\n== Pending permission for image(s) ==\n\nHello. On following image(s), you have added the {{tl|otrs pending}} template:\n\n" + noticket.submit.generatelist() + "\nUnfortunately, after conducting a search, I could not locate the ticket containing the permission to use the image(s). Please respond \'\'\'on my talk page\'\'\' if you have the ticket number, or if you would like to send me the permission. Please note that if we do not receive permission for the image(s), they will likely be deleted within 7-10 days. Thanks! \~\~\~\~"; //New text in the edit form.
  9. ISSUE: line 35 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpSummary.value = "/* Pending permission for image(s) */ new section"; //Summary.
  10. ISSUE: line 36 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpMinoredit.checked = false; //Not a minor edit.
  11. ISSUE: line 37 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpWatchthis.checked = false; //Let's not watchlist this.
  12. ISSUE: line 38 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].submit();
  13. ISSUE: line 39 character 2: Missing semicolon. - Evidence: }
  14. ISSUE: line 42 character 21: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && wgNamespaceNumber == 3 && UrlParameters["noticket"] == 1) {
  15. ISSUE: line 42 character 84: ['noticket'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && wgNamespaceNumber == 3 && UrlParameters["noticket"] == 1) {
  16. ISSUE: line 48 character 49: ['noticket'] is better written in dot notation. - Evidence: if(wgNamespaceNumber == 3 && !UrlParameters["noticket"]) mw.util.addPortletLink("p-cactions", mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=edit&noticket=1", "noticket", "ca-otrstext"); //Add the tab.