Last active
February 5, 2017 18:28
-
-
Save Phoen1x84/c0716abe09940908771cbc992739f2b9 to your computer and use it in GitHub Desktop.
Show / Hide the Sitecore page preview ribbon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var UTILS = UTILS || {}; | |
UTILS.editorGridToggle = (function ($) { | |
'use strict'; | |
var init = function () { | |
if ($('#scWebEditRibbon').length) { | |
$('.overlay-grid-toggle-btn').show(); | |
$(document).on('click', '.overlay-grid-toggle-btn', function (e) { | |
e.preventDefault(); | |
$('.overlay-grid').toggle(); | |
}); | |
} | |
}; | |
return { | |
init: init | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment