Jonas Kress (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/365058 )

Change subject: Show toast how to exit fullscreen mode
......................................................................

Show toast how to exit fullscreen mode

Bug:T170540
Change-Id: I14137d886e190d18f945bc3a28c62829e6a144c3
---
M i18n/en.json
M i18n/qqq.json
M index.html
M package.json
M wikibase/queryService/ui/App.js
5 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui 
refs/changes/58/365058/1

diff --git a/i18n/en.json b/i18n/en.json
index 8fb8695..68a2002 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -56,6 +56,7 @@
     "wdqs-app-resultbrowser-hierarchical-lr": "Hierarchical layout left to 
right",
     "wdqs-app-resultbrowser-hierarchical-ud": "Hierarchical layout up to down",
     "wdqs-app-resultbrowser-hierarchical-rl": "Hierarchical layout right to 
left",
+    "wdqs-app-toast-leave-fullscreen": "Press [esc] to leave fullscreen",
     "wdqs-dialog-examples-preview-query": "Preview query",
     "wdqs-dialog-examples-preview-result": "Preview result",
     "wdqs-ve-filter": "Filter",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index e7ca525..40d429c 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -58,6 +58,7 @@
        "wdqs-app-resultbrowser-hierarchical-lr": "Button message in graph 
browser toolbar",
        "wdqs-app-resultbrowser-hierarchical-ud": "Button message in graph 
browser toolbar",
        "wdqs-app-resultbrowser-hierarchical-rl": "Button message in graph 
browser toolbar",
+    "wdqs-app-toast-leave-fullscreen": "Explaination how to exit fullscreen",
        "wdqs-dialog-examples-preview-query": "Label to preview query in 
example dialog",
        "wdqs-dialog-examples-preview-result": "Label to preview result in 
example dialog",
        "wdqs-ve-filter": "Label to add a filter in Query 
Helper\n{{Identical|Filter}}",
diff --git a/index.html b/index.html
index deb1c17..c2bb2d6 100644
--- a/index.html
+++ b/index.html
@@ -26,6 +26,7 @@
        <link rel="stylesheet" 
href="node_modules/jquery.uls/css/jquery.uls.lcd.css">
        <link rel="stylesheet" 
href="node_modules/jquery.uls/css/jquery.uls.mobile.css">
        <link rel="stylesheet" 
href="node_modules/jstree/dist/themes/default/style.css" />
+       <link rel="stylesheet" 
href="node_modules/jquery-toast-plugin/src/jquery.toast.css" />
        <link rel="stylesheet" 
href="vendor/bootstrap-tags/css/bootstrap-tags.css">
        <link rel="stylesheet" href="style.css">
        <!-- endbuild -->
@@ -269,6 +270,7 @@
        <!-- JS files -->
        <!-- build:js js/vendor.min.js -->
        <script src="node_modules/jquery/dist/jquery.js"></script>
+       <script 
src="node_modules/jquery-toast-plugin/src/jquery.toast.js"></script>
        <script src="node_modules/underscore/underscore.js"></script>
        <script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
        <script src="node_modules/codemirror/lib/codemirror.js"></script>
diff --git a/package.json b/package.json
index 90e6659..da56cdc 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
     "font-awesome": "^4.7.0",
     "jqcloud-npm": "^3.1.0",
     "jquery": "^3.2.1",
+    "jquery-toast-plugin": "^1.3.1",
     "jquery.i18n": "git+https://github.com/wikimedia/jquery.i18n.git";,
     "jquery.uls": "git+https://github.com/wikimedia/jquery.uls.git";,
     "js-cookie": "^2.1.4",
diff --git a/wikibase/queryService/ui/App.js b/wikibase/queryService/ui/App.js
index 41a23d0..9f27310 100644
--- a/wikibase/queryService/ui/App.js
+++ b/wikibase/queryService/ui/App.js
@@ -365,6 +365,7 @@
                        e.preventDefault();
                        self._editor.toggleFullscreen();
                        self._editor.focus();
+                       $.toast( { text: $.i18n( 
'wdqs-app-toast-leave-fullscreen' ) } );
                } );
 
                $( window ).on( 'popstate', $.proxy( this._initQuery, this ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/365058
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I14137d886e190d18f945bc3a28c62829e6a144c3
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Jonas Kress (WMDE) <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to