spec/dummy/tmp/cache/assets/DBF/940/sprockets%2Fb13a96ae4e2f3d40ffee0d9706b0db12 in api_taster-0.2.2 vs spec/dummy/tmp/cache/assets/DBF/940/sprockets%2Fb13a96ae4e2f3d40ffee0d9706b0db12 in api_taster-0.3.0
- old
+ new
@@ -1,34 +1,42 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1340245412.0117068:@value"Å{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1340256891.386337:@value"Ù{I"
class:EFI"ProcessedAsset; FI"logical_path; FI"api_taster/app.js; FI"
pathname; FI"M/Users/User/Projects/api_taster/app/assets/javascripts/api_taster/app.js; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2012-06-21T12:23:28+10:00; FI"length; FiÃI"digest; F"%dd95b9edb74729b8f8d210253c26838bI"source; FI"Ãvar ApiTaster = {
+mtime; FI"2012-06-21T15:05:51+10:00; FI"length; Fi×I"digest; F"%92e2737402f043fc3bafd43622806117I"source; FI"×var ApiTaster = {
+
formAction: '',
+
disableUrlParams: function() {
$("fieldset[ref=url-params] input").prop("disabled", true);
},
+
enableUrlParams: function() {
$("fieldset[ref=url-params] input").prop("disabled", false);
},
+
storeFormActionFor: function(form) {
ApiTaster.formAction = form.attr("action")
},
+
restoreFormActionFor: function(form) {
$(form).attr("action", ApiTaster.formAction);
},
+
detectContentType: function(response) {
var contentType = response.getResponseHeader("Content-Type");
var detectedContentType = null
if (contentType.match(/application\/json/)) {
detectedContentType = 'json';
}
return detectedContentType;
}
+
};
$.fn.extend({
+
replaceUrlParams: function(params) {
var form = this;
$.each(params, function(i, param) {
var matches = param["name"].match(/\[api_taster_url_params\](.*)/)
@@ -43,10 +51,11 @@
form.attr("action", replacedAction);
}
});
},
+
enableNavTabsFor: function(contentElement) {
var container = this;
$("ul.nav-tabs a", container).click(function(e) {
e.preventDefault();
@@ -56,29 +65,32 @@
$(contentElement, container).hide();
$(contentElement + "[ref=" + $(this).attr("id") + "]", container).show();
});
},
+
showNavTab: function(name) {
$("ul.nav-tabs li", this).removeClass("active");
$("ul.nav-tabs li a#response-" + name, this).parent().show().addClass("active");
$("pre", this).hide();
return $("pre[ref=response-" + name + "]", this).show();
},
+
displayOnlySelectedParamsFieldset: function() {
$("fieldset", this).hide();
$("fieldset[ref=" + $("ul.nav-tabs li.active a").attr("id") + "]", this).show();
}
+
});
jQuery(function($) {
- $("a.show-api").click(function(e) {
+ $("#list-api-div a").click(function(e) {
e.preventDefault();
- $("a.show-api").parent().removeClass("active");
+ $(this).parent().siblings().removeClass("active");
$(this).parent().addClass("active");
$("#show-api-div .div-container").load(this.href, function() {
prettyPrint();
@@ -121,7 +133,7 @@
$("#show-api-response-div").enableNavTabsFor("pre");
});
});
-; FI"dependency_digest; F"%8770e462d86068293127a8c2328e02d0I"required_paths; F[I"M/Users/User/Projects/api_taster/app/assets/javascripts/api_taster/app.js; FI"dependency_paths; F[{I" path; FI"M/Users/User/Projects/api_taster/app/assets/javascripts/api_taster/app.js; FI"
-mtime; FI"2012-06-21T12:23:28+10:00; FI"digest; F"%dd95b9edb74729b8f8d210253c26838bI"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
+; FI"dependency_digest; F"%f13788e61e99f11c3a8839a13cc18055I"required_paths; F[I"M/Users/User/Projects/api_taster/app/assets/javascripts/api_taster/app.js; FI"dependency_paths; F[{I" path; FI"M/Users/User/Projects/api_taster/app/assets/javascripts/api_taster/app.js; FI"
+mtime; FI"2012-06-21T15:05:51+10:00; FI"digest; F"%92e2737402f043fc3bafd43622806117I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
\ No newline at end of file