{:uriI"Ôfile:///Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/directives.js.coffee?type=application/javascript&pipeline=self&id=7e4220f4e3188e7d7c00efb28f64c900abf71c98bd94855275d715ef7e5be7ea:ET:load_pathI"E/Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts;F: filenameI"d/Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/directives.js.coffee;T: nameI"push_type/directives;T:logical_pathI"!push_type/directives.self.js;T:content_typeI"application/javascript;T: sourceI"s(function() { this.app.directive('ptConfirmReveal', function() { return function($scope, $el, $attrs) { var $modal, callbackFn, defaults, option; defaults = { title: 'Are you sure?', body: 'This action cannot be undone.' }; option = function(name) { return $el.data(name) || defaults[name]; }; $modal = $("
\n

\n

\n
\n \n \n
\n
"); $modal.find('[pt-title]').html(option('title')); $modal.find('[pt-body]').html(option('body')); callbackFn = new Function('$scope', "$scope." + $attrs.ptConfirmReveal); $modal.find('[pt-confirm]').on('click', function(e) { e.preventDefault(); callbackFn($scope); return $modal.foundation('reveal', 'close'); }); $modal.find('[pt-cancel]').on('click', function(e) { e.preventDefault(); return $modal.foundation('reveal', 'close'); }); return $el.on('click', function(e) { e.preventDefault(); return $modal.appendTo('body').foundation('reveal', 'open').on('closed.fndtn.reveal', function(e) { return $modal.remove(); }); }); }; }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"rfile-digest:///Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/directives.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%m*&ï#MžMüLêæ,<Ëÿ6®× º*ëåžØ£ /: lengthis:dependencies_digest"%ŠãÝyÿþÂãá äâ¾Æ²—ƒ‡Øøÿ®~ˆºiä°G:idI"E7e4220f4e3188e7d7c00efb28f64c900abf71c98bd94855275d715ef7e5be7ea;F: mtimel+·Î?U