Created
February 4, 2016 13:44
-
-
Save soncco/4831b4e55c2032e2b2af to your computer and use it in GitHub Desktop.
Bootstrap Drupal hardcode hack for search
This file contains hidden or 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
# Search Hack. | |
$search = $('#search-block-form', context) | |
$search | |
.removeAttr('id') | |
$first = $search.find('div:first-child') | |
$($first.html()).appendTo($search) | |
$first.remove() | |
$search.addClass 'navbar-form navbar-right' | |
$button = $search.find '.input-group span' | |
$($button.html()).appendTo($search.find('.input-group').parent()) | |
$button.remove() | |
$search.find '.input-group input' | |
.attr('size', 35) | |
$search.find '.form-actions' | |
.remove() | |
$search.find '.input-group' | |
.removeClass 'input-group' | |
.addClass 'form-group' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment