o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1413240925.274257: @value"U{I" class:ETI"ProcessedAsset;FI"logical_path;TI"sweet-alert-confirm.js;FI" pathname;TI"c/Users/moises/proyectos/gems/sweet_rails_confirm/lib/assets/javascripts/sweet-alert-confirm.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-10-13T01:56:31-04:30;TI" length;TiI" digest;TI"%bc21f85a99992e6a906983365bf4d99e;FI" source;TI"(function( $ ) { var sweetAlertConfirm = function(event) { swalDefaultOptions = { title: 'Are you sure?', type: 'warning', showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Ok" } //this.click(function(event) { $linkToVerify = $(this) var swalOptions = swalDefaultOptions; var optionKeys = [ 'confirm', 'text', 'type', 'showCancelButton', 'confirmButtonColor', 'cancelButtonColor', 'confirmButtonText', 'cancelButtonText', 'closeOnConfirm', 'remote', 'method' ] $.each($linkToVerify.data(), function(key, val){ if ($.inArray(key, optionKeys) >= 0) { swalOptions[key] = val } }) message = $linkToVerify.attr('data-sweet-alert-confirm') swalOptions['title'] = message swal(swalOptions, function(r){ if (swalOptions['remote'] === true) { $.rails.handleRemote($linkToVerify) } else if(swalOptions[ 'method' ] !== undefined) { $.rails.handleMethod($linkToVerify) } else { //[FIXME]Check this im not sure about this window.location.href = $linkToVerify.attr('href'); } }); return false; //}); //return this; } $(document).ready(function(){ //$("a[data-sweet-alert-confirm]").sweetAlertConfirm(); $('a[data-sweet-alert-confirm]').on('click', sweetAlertConfirm) }); })( jQuery ); ;TI"dependency_digest;TI"%7948494b5f35126fc355ed2c8aea5242;FI"required_paths;T[ I"/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/sweet-alert.js;FI"/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/sweet-alert.min.js;FI"{/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/index.js;FI"c/Users/moises/proyectos/gems/sweet_rails_confirm/lib/assets/javascripts/sweet-alert-confirm.js;FI"dependency_paths;T[ {I" path;TI"c/Users/moises/proyectos/gems/sweet_rails_confirm/lib/assets/javascripts/sweet-alert-confirm.js;FI" mtime;TI"2014-10-13T01:56:31-04:30;TI" digest;TI"%c30537c6fe26742321b48fd188602c9d;F{@ I"{/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/index.js;F@"I"2014-10-12T15:21:46-04:30;T@$I"%413e9ceef33488301585fc5e8a58bfc6;F{@ I"/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/sweet-alert.js;F@"I"2014-10-12T15:21:46-04:30;T@$I"%057ea46ea1eca462d4bf3a5c7c20119d;F{@ I"/Users/moises/.rvm/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sweet-alert-0.0.1/app/assets/javascripts/sweet-alert/sweet-alert.min.js;F@"I"2014-10-12T15:21:46-04:30;T@$I"%5bc774a81f356bb597750d7b51758593;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F