Sha256: 15bd02cd58a073b28739abbda8ff0b246bd0e08c642e47165f7c3af1a2e561da
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // //= require jquery //= require jquery_ujs // //= require jquery-ui-1.9.2/jquery.ui.widget //= require jquery-ui-1.9.2/jquery.ui.core // //= require blacklight/blacklight // //= require bootstrap-dropdown //= require bootstrap-button //= require bootstrap-collapse //= require bootstrap-tooltip //= require bootstrap-popover //= require bootstrap-datepicker // //= require manage_repeating_fields //= require toggle_details //= require help_modal $(function(){ $('abbr').tooltip(); $('body').on('keypress', '.multi-text-field', function(event) { var $activeField = $(event.target).parents('.field-wrapper'), $activeFieldControls = $activeField.children('.field-controls'), $addControl=$activeFieldControls.children('.add'), $removeControl=$activeFieldControls.children('.remove'); if (event.keyCode == 13) { event.preventDefault(); $addControl.click() $removeControl.click() } }); $('.multi_value.control-group').manage_fields(); // Collapse all of the accordion body elements except the first // $('.accordion-body').each(function(index){ // if(index != 0) { // $(this).removeClass('in'); // } // }); $('.datepicker').datepicker({ format: 'yyyy-mm-dd' }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
curate-0.3.2 | app/assets/javascripts/curate.js |
curate-0.3.1 | app/assets/javascripts/curate.js |