From 0b9e7f53ab3bb5ce6b85e73ba9ebe313ab1ade8c Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Wed, 20 Jan 2016 17:47:37 -0600 Subject: [PATCH] fixed semantics of a drawer that is forced closed --- docs/examples/dashboard/example.js | 6 +++--- docs/examples/dashboard/index.html | 2 +- js/src/drawer.js | 7 ++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/examples/dashboard/example.js b/docs/examples/dashboard/example.js index 22118fd5..1f291547 100644 --- a/docs/examples/dashboard/example.js +++ b/docs/examples/dashboard/example.js @@ -31,14 +31,14 @@ $(document).ready(function() { // document ready is a little convoluted because var $btn = $(this) var $icon = $btn.find('.material-icons') - if ($icon.text() == 'visibility_off') { + if ($icon.text() == 'visibility') { $container.addClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it close - $icon.text('visibility') + $icon.text('visibility_off') $btn.attr('title', 'Drawer allow responsive opening') } else { $container.removeClass('mdb-drawer-out') // demo only, regardless of the responsive class, we want to force it open - $icon.text('visibility_off') + $icon.text('visibility') $btn.attr('title', 'Drawer force closed') } }) diff --git a/docs/examples/dashboard/index.html b/docs/examples/dashboard/index.html index 1e5771e8..8b129188 100644 --- a/docs/examples/dashboard/index.html +++ b/docs/examples/dashboard/index.html @@ -32,7 +32,7 @@ js: example.js