From 461e4f75de1f9e6d26adfa6f8c2ac878c26ac167 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 4 Jul 2015 09:34:35 +1000 Subject: [PATCH] Improve admin list toolbar Change "Admins" group to "Owners" (more descriptive) Fix bug in Firefox on Mediafinder form widget not respecting max-width 100% Recompile assets --- modules/backend/assets/js/october-min.js | 3 ++- .../controllers/usergroups/_list_toolbar.htm | 7 ++++++- .../backend/controllers/users/_list_toolbar.htm | 8 ++++++-- .../backend/database/seeds/SeedSetupAdmin.php | 8 ++++---- .../richeditor/assets/js/build-min.js | 16 +++------------- modules/backend/lang/en/lang.php | 6 +++--- .../mediafinder/assets/css/mediafinder.css | 3 ++- .../assets/less/mediafinder.imagesingle.less | 3 ++- 8 files changed, 28 insertions(+), 26 deletions(-) diff --git a/modules/backend/assets/js/october-min.js b/modules/backend/assets/js/october-min.js index 44e08815a..d202e42f2 100644 --- a/modules/backend/assets/js/october-min.js +++ b/modules/backend/assets/js/october-min.js @@ -2663,7 +2663,8 @@ this.escape() $(document).off('focusin.bs.modal') this.$element.removeClass('in').attr('aria-hidden',true).off('click.dismiss.bs.modal') $.support.transition&&this.$element.hasClass('fade')?this.$element.one($.support.transition.end,$.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()} -Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.focus()}},this))} +Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if($(e.target).hasClass('select2-search__field')){return} +if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.focus()}},this))} Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keyup.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keyup.dismiss.bs.modal')}} Modal.prototype.hideModal=function(){var that=this this.$element.hide() diff --git a/modules/backend/controllers/usergroups/_list_toolbar.htm b/modules/backend/controllers/usergroups/_list_toolbar.htm index 4e33b1ed4..b1d2b38bc 100644 --- a/modules/backend/controllers/usergroups/_list_toolbar.htm +++ b/modules/backend/controllers/usergroups/_list_toolbar.htm @@ -1,3 +1,8 @@
- + + + + + +
diff --git a/modules/backend/controllers/users/_list_toolbar.htm b/modules/backend/controllers/users/_list_toolbar.htm index e18014386..69ff34f5e 100644 --- a/modules/backend/controllers/users/_list_toolbar.htm +++ b/modules/backend/controllers/users/_list_toolbar.htm @@ -1,6 +1,10 @@
- - + + + + + +