When browser doesn't support mobile editor, use fallback editor rather than none
Change-Id: I41bd554c3e979061dd8b1846a6412efb3284e7e9
This commit is contained in:
parent
ba827d4b3c
commit
1b61a14535
|
@ -16,7 +16,6 @@
|
|||
"mobile-frontend-editor-tutorial-cancel": "No, thanks",
|
||||
"mobile-frontend-editor-tutorial-confirm": "Start editing",
|
||||
"mobile-frontend-editor-tutorial-summary": "Try improving the $1 page.<br />Don't be scared of markup.",
|
||||
"mobile-frontend-editor-unavailable": "Mobile editing is not currently available on your browser. Please try a different browser.",
|
||||
"mobile-frontend-editor-uploadenable": "Please upload a photo first to enable editing.",
|
||||
"mobile-frontend-footer-sitename": "{{SITENAME}}",
|
||||
"mobile-frontend-history": "View edit history of this page.",
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
"mobile-frontend-editor-tutorial-cancel": "Label for button that user can click if they do not want to edit.\n{{Identical|No thanks}}",
|
||||
"mobile-frontend-editor-tutorial-confirm": "Text for the button a user clicks after they have read the editing tutorial and are ready to edit the page.\n\nSee also:\n* {{msg-mw|Mobile-frontend-editor-tutorial-summary}}",
|
||||
"mobile-frontend-editor-tutorial-summary": "Text for tutorial overlay presented to a user the first time they try to edit a page.\n\nParameters:\n* $1 - page title\nSee also:\n* {{msg-mw|Mobile-frontend-editor-tutorial-alt-summary}}",
|
||||
"mobile-frontend-editor-unavailable": "Message that appears when a user attempts to edit with an unsupported/incapable browser.\n\nPreceded by the header {{msg-mw|Mobile-frontend-editor-unavailable-header}}.",
|
||||
"mobile-frontend-editor-uploadenable": "Shown when try to edit a new file page.",
|
||||
"mobile-frontend-footer-sitename": "Name of site",
|
||||
"mobile-frontend-history": "Used as label for the link which points to the \"Edit history\" page.\n\nThis is shown on the Main Page in place of a last modified label to avoid confusion caused by transclusions.\n\nIf not the Main Page, the following message is used:\n* {{msg-mw|Mobile-frontend-last-modified-date}}",
|
||||
|
|
|
@ -410,10 +410,11 @@
|
|||
}
|
||||
|
||||
if ( !isEditingSupported ) {
|
||||
// Editing is disabled (or browser is blacklisted)
|
||||
updateEditPageButton( false );
|
||||
showSorryToast( mw.msg( 'mobile-frontend-editor-unavailable' ) );
|
||||
} else if ( isNewFile ) {
|
||||
// Browser doesn't support mobile editor (or is blacklisted), use the fallback editor.
|
||||
return;
|
||||
}
|
||||
|
||||
if ( isNewFile ) {
|
||||
updateEditPageButton( true );
|
||||
// Is a new file page (enable upload image only) Bug 58311
|
||||
showSorryToast( mw.msg( 'mobile-frontend-editor-uploadenable' ) );
|
||||
|
|
Loading…
Reference in New Issue