From 251292b4b858f8dad5cafee64088de5f5da51c35 Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Wed, 20 Jan 2016 17:10:34 -0600 Subject: [PATCH] add back mdb-drawer-out to force closed. --- docs/examples/dashboard/example.js | 9 ++++++--- docs/examples/dashboard/index.html | 6 +++--- scss/_drawer.scss | 19 +++++++++++-------- scss/_forms.scss | 2 +- scss/mixins/_drawer.scss | 2 +- 5 files changed, 22 insertions(+), 16 deletions(-) diff --git a/docs/examples/dashboard/example.js b/docs/examples/dashboard/example.js index f46d1b3a..22118fd5 100644 --- a/docs/examples/dashboard/example.js +++ b/docs/examples/dashboard/example.js @@ -29,14 +29,17 @@ $(document).ready(function() { // document ready is a little convoluted because // once clicked, just do away with responsive marker //$container.removeClass('mdb-drawer-in-md') - var $icon = $(this).find('.material-icons') + var $btn = $(this) + var $icon = $btn.find('.material-icons') if ($icon.text() == 'visibility_off') { - $container.removeClass('mdb-drawer-in') // demo only, regardless of the responsive class, we want to force it close + $container.addClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it close $icon.text('visibility') + $btn.attr('title', 'Drawer allow responsive opening') } else { - $container.addClass('mdb-drawer-in') // demo only, regardless of the responsive class, we want to force it open + $container.removeClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it open $icon.text('visibility_off') + $btn.attr('title', 'Drawer force closed') } }) }) diff --git a/docs/examples/dashboard/index.html b/docs/examples/dashboard/index.html index b776b904..1d397541 100644 --- a/docs/examples/dashboard/index.html +++ b/docs/examples/dashboard/index.html @@ -29,9 +29,9 @@ js: example.js Home -