{:uriI"Ôfile:///Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/directives.js.coffee?type=application/javascript&pipeline=self&id=fe6973de52beea9de9bbd7b35d149822a4069e0a90eeed56afa673ea9490a50d:ET:load_pathI"E/Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts;T: 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±†£ÉÈ[$ÎMF¥Õtã}uñÙm¹L“`f•:idI"Efe6973de52beea9de9bbd7b35d149822a4069e0a90eeed56afa673ea9490a50d;F: mtimel+·Î?U