Sha256: 0300edf869e9d698d3c9db84fcb408534d5f8b2cf884e1a45e91ac8a70e660cd
Contents?: true
Size: 1.13 KB
Versions: 10
Compression:
Stored size: 1.13 KB
Contents
//= require selectize //= require thecore_ui_commons/thecore //= require rails_admin/custom/thecore //= require rails_admin/custom/thecore-custom-1 //= require rails_admin/custom/thecore-custom-2 //= require rails_admin/custom/thecore-custom-3 //= require rails_admin/custom/thecore-custom-4 //= require rails_admin/custom/thecore-custom-5 function hideBreadCrumbAndToolbar() { // If the page loaded has a tag like <span class="hide-breadcrumb hide-toolbar"></span> // then hide the elements // var actionName = "#{action_name}" // var isRoot = "#{RailsAdmin::Config::Actions.find(action_name.to_sym).root?}" // console.log(actionName, isRoot) if ($(".hide-breadcrumb").length) $(".breadcrumb").hide() else $(".breadcrumb").show() if ($(".hide-toolbar").length) $(".breadcrumb + .nav.nav-tabs").hide() else $(".breadcrumb + .nav.nav-tabs").show() } function adjustIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; } // Re evaluate at each iteraction $(document).off('ready pjax:success', hideBreadCrumbAndToolbar); $(document).on('ready pjax:success', hideBreadCrumbAndToolbar);
Version data entries
10 entries across 10 versions & 1 rubygems