Moved form helpers from application_helper to a real FormHelper

This commit is contained in:
Godwin
2014-05-12 20:09:19 -06:00
parent 9ae7135c6a
commit ffa8239e42
30 changed files with 600 additions and 357 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ selectA = (type, event, $emptyObj) ->
$overlay = createOverlay()
objs = []
$('.' + type + '-select-field.added input.' + type + '-id').each () -> obj.push($(this).val())
$.post $emptyObj.data().url + (if type == 'organization' then '/nonhosts' else '/nonmembers'), {added: objs},
$.post window.location.href.replace(/^(.*\/)(.+?)$/, '$1non$2'), {added: objs},
(html) ->
setOverlayHTML(html).addClass('' + type + '-select')
$('#select-' + type + '-list a').click (event) ->
@@ -182,7 +182,8 @@ $large: $large-up;
// We use this to control the maximum number of block grid elements per row
// $block-grid-elements: 12;
// $block-grid-default-spacing: rem-calc(20);
$block-grid-default-spacing: rem-calc(20);
$align-block-grid-to-grid: true;
// Enables media queries for block-grid classes. Set to false if writing semantic HTML.
// $block-grid-media-queries: true;
+5
View File
@@ -395,3 +395,8 @@ table {
background: transparent !important;
}
}
/*[class*="block-grid-"] {
margin: 0;
}
*/