test/dummy/tmp/cache/assets/D87/C40/sprockets%2F9dcd7a6999affe28e91e514cee079016 in cytoplasm-0.3.1 vs test/dummy/tmp/cache/assets/D87/C40/sprockets%2F9dcd7a6999affe28e91e514cee079016 in cytoplasm-0.3.3
- old
+ new
@@ -1,9 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360350529.842371:@value"©
-{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360531701.8966222:@value"Ò
{I"
class:EFI"BundledAsset; FI"logical_path; FI"cytoplasm/cytoAjax.js; FI"
pathname; FI"e/Applications/XAMPP/xamppfiles/htdocs/cytoplasm/app/assets/javascripts/cytoplasm/cytoAjax.js.erb; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2013-02-08T14:08:49-05:00; FI"length; Fi¾I"digest; F"%c5eb076b0eb95b077cde34f7e7f0ec29I"source; FI"¾// CytoAjax v0.5
+mtime; FI"2013-02-10T16:28:21-05:00; FI"length; FiçI"digest; F"%508a5a96772bbd26067a560d958a6fcfI"source; FI"ç// CytoAjax v0.5
// MacKinley Smith
(function($){
$.cytoAjaxResponse = function(message,type,time){
if (message==null) message = "Success!";
if (type==null) type = "success";
@@ -52,13 +51,44 @@
}
});
};
$.CytoAjax = $.cytoAjax;
$.Cytoplasm("ready",function(){
+
+ // Set styles
+ var vars = $.Cytoplasm("vars");
+ $.Cytoplasm("addStyles","cytoajax_styles",{
+ '.cytoResponseMessage':{
+ display:'none',
+ padding:"10px",
+ 'margin-bottom':"10px",
+ "border-radius":"5px",
+ font:vars.fonts.sizes.small+" "+vars.fonts.faces.light,
+ '&:first-line':{
+ font:vars.fonts.sizes.normal+" "+vars.fonts.faces.bold
+ },
+ '&[data-type=success]':{
+ "border-color":"green",
+ color:"green",
+ background:"linear-gradient(top, white, #a4ffa4)"
+ },
+ '&[data-type=loading]':{
+ "border-color":"yellow",
+ color:"#777700",
+ background:"linear-gradient(top, white, #000077)"
+ },
+ '&[data-type=error]':{
+ "border-color":"red",
+ color:"red",
+ background:"linear-gradient(top, white, rgb(255,170,170))"
+ }
+ }
+ });
+
// Setup callback messages
$.each(["success","sending","error"],function(i,type){
var $this = $('.cytoResponseMessage[data-type="'+type+'"]');
if (!$this.is('*')) $this = $('<p />').addClass('cytoResponseMessage').attr("data-type",type).hide().appendTo($('header'));
});
});
})(jQuery);
-; FI"required_assets_digest; F"%55e92b6e00ce2a6b9c9a6be8833b35ccI"
_version; F"%6776f581a4329e299531e1d52aa59832
+; FI"required_assets_digest; F"%cd5d05c449efbfd6416b5d20da6b83b8I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file