[MediaWiki-commits] [Gerrit] Autosize description field to expand with content - change (analytics...web)
jenkins-bot has submitted this change and it was merged. Change subject: Autosize description field to expand with content .. Autosize description field to expand with content Bug: T77945 Change-Id: Id060ddecee59a9b33e8d386f535f5cec487b6bf6 --- M quarry/web/static/js/query/view.js M quarry/web/templates/query/view.html 2 files changed, 3 insertions(+), 0 deletions(-) Approvals: Yuvipanda: Looks good to me, approved jenkins-bot: Verified diff --git a/quarry/web/static/js/query/view.js b/quarry/web/static/js/query/view.js index c57f407..d0df447 100644 --- a/quarry/web/static/js/query/view.js +++ b/quarry/web/static/js/query/view.js @@ -15,6 +15,8 @@ matchBrackets: true }); +$('#query-description').autosize(); + if (vars.can_edit) { $('#title').blur(function() { $.post( /api/query/meta, { diff --git a/quarry/web/templates/query/view.html b/quarry/web/templates/query/view.html index db4841c..afbec52 100644 --- a/quarry/web/templates/query/view.html +++ b/quarry/web/templates/query/view.html @@ -11,6 +11,7 @@ script src=//tools-static.wmflabs.org/cdnjs/ajax/libs/codemirror/5.4.0/addon/edit/matchbrackets.min.js /script script src=/static/vendor/datatables-1.10.2/js/jquery.dataTables.min.js /script script src=/static/vendor/datatables-1.10.2/js/dataTables.bootstrap.js /script +script src=//tools-static.wmflabs.org/cdnjs/ajax/libs/autosize.js/1.18.18/jquery.autosize.min.js /script link href=/static/vendor/datatables-1.10.2/css/dataTables.bootstrap.css rel=stylesheet script src=/static/js/query/view.js /script {% endblock %} -- To view, visit https://gerrit.wikimedia.org/r/222894 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id060ddecee59a9b33e8d386f535f5cec487b6bf6 Gerrit-PatchSet: 1 Gerrit-Project: analytics/quarry/web Gerrit-Branch: master Gerrit-Owner: Yuvipanda yuvipa...@gmail.com Gerrit-Reviewer: Yuvipanda yuvipa...@gmail.com Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Autosize description field to expand with content - change (analytics...web)
Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/222894 Change subject: Autosize description field to expand with content .. Autosize description field to expand with content Bug: T77945 Change-Id: Id060ddecee59a9b33e8d386f535f5cec487b6bf6 --- M quarry/web/static/js/query/view.js M quarry/web/templates/query/view.html 2 files changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/quarry/web refs/changes/94/222894/1 diff --git a/quarry/web/static/js/query/view.js b/quarry/web/static/js/query/view.js index c57f407..d0df447 100644 --- a/quarry/web/static/js/query/view.js +++ b/quarry/web/static/js/query/view.js @@ -15,6 +15,8 @@ matchBrackets: true }); +$('#query-description').autosize(); + if (vars.can_edit) { $('#title').blur(function() { $.post( /api/query/meta, { diff --git a/quarry/web/templates/query/view.html b/quarry/web/templates/query/view.html index db4841c..afbec52 100644 --- a/quarry/web/templates/query/view.html +++ b/quarry/web/templates/query/view.html @@ -11,6 +11,7 @@ script src=//tools-static.wmflabs.org/cdnjs/ajax/libs/codemirror/5.4.0/addon/edit/matchbrackets.min.js /script script src=/static/vendor/datatables-1.10.2/js/jquery.dataTables.min.js /script script src=/static/vendor/datatables-1.10.2/js/dataTables.bootstrap.js /script +script src=//tools-static.wmflabs.org/cdnjs/ajax/libs/autosize.js/1.18.18/jquery.autosize.min.js /script link href=/static/vendor/datatables-1.10.2/css/dataTables.bootstrap.css rel=stylesheet script src=/static/js/query/view.js /script {% endblock %} -- To view, visit https://gerrit.wikimedia.org/r/222894 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id060ddecee59a9b33e8d386f535f5cec487b6bf6 Gerrit-PatchSet: 1 Gerrit-Project: analytics/quarry/web Gerrit-Branch: master Gerrit-Owner: Yuvipanda yuvipa...@gmail.com ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits