{I" class:EFI"ProcessedAsset;FI"logical_path;FI"store/sb-admin/custom.js;TI" pathname;FI"N/Users/wilbert/apps/store/app/assets/javascripts/store/sb-admin/custom.js;TI"content_type;FI"application/javascript;FI" mtime;Fl+n7SI" length;FiI" digest;F"%19f85f59a283c4bd9886fdf66bbde762I" source;FI"function remove_fields(link) { $(link).prev("input[type=hidden]").val("1"); $(link).closest(".row").hide(); } function add_fields(link, association, content) { var new_id = new Date().getTime(); var regexp = new RegExp("new_" + association, "g") $(link).parent().before(content.replace(regexp, new_id)); } jQuery(document).ready(function($){ $("#question_question_type").change(function(e){ if ($(this).val() == 1 || $(this).val() == 2) { if ($(this).val() == 1) { $("#option-title-field").removeClass("col-lg-12"); if(!$("#option-title-field").hasClass("col-lg-10")){ $("#option-title-field").addClass("col-lg-10"); } $("#next-question-selector").show(); } else { $("#option-title-field").removeClass("col-lg-10"); if(!$("#option-title-field").hasClass("col-lg-12")){ $("#option-title-field").addClass("col-lg-12"); } $("#next-question-selector").hide(); } $("#option-fields-container").show(); }else{ $("#option-fields-container").hide(); } }); $('a').tooltip(); $('body').on("click", '[data-toggle="modal"]', function(e) { e.preventDefault(); var url = "" + $(this).attr('href'); if (url.indexOf('#') == 0) { $(url).modal(); } else { $.get(url, function(data) { $('').modal({ keyboard: true }); }).success(function() { $('input:text:visible:first').focus(); }); } }); }); ;TI"dependency_digest;F"%9612532b7f1d8081af70cbd14ab5b6f6I"required_paths;F[I"N/Users/wilbert/apps/store/app/assets/javascripts/store/sb-admin/custom.js;TI"dependency_paths;F[{I" path;FI"N/Users/wilbert/apps/store/app/assets/javascripts/store/sb-admin/custom.js;TI" mtime;FI"2014-03-29T22:08:29-03:00;FI" digest;F"%a736a4c68ba10f7ec4c39697c971c2a5I" _version;F"%9bd74cab6f8cd17bb7b52df6002861bd