spec/dummy/tmp/cache/assets/D11/2E0/sprockets%2F1879a9ee13aa637550fd9d122fdb5407 in api_taster-0.4.4 vs spec/dummy/tmp/cache/assets/D11/2E0/sprockets%2F1879a9ee13aa637550fd9d122fdb5407 in api_taster-0.4.5
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1340324658.3214111:@value"
{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1340592071.1011982:@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-22T10:24:16+10:00; FI"length; Fi
I"digest; F"%5609d7665c871abfe3d8c89b20ed4197I"source; FI"
var ApiTaster = {
+mtime; FI"2012-06-25T12:41:09+10:00; FI"length; FiëI"digest; F"%97c9fc1d1e60b97bee562b70a0986276I"source; FI"ëvar ApiTaster = {
formAction: '',
disableUrlParams: function() {
$("fieldset[ref=url-params] input").prop("disabled", true);
@@ -36,26 +36,26 @@
$.fn.extend({
replaceUrlParams: function(params) {
var form = this;
+ ApiTaster.storeFormActionFor(form);
+
+ var formAction = form.attr("action");
+
$.each(params, function(i, param) {
var matches = param["name"].match(/\[api_taster_url_params\](.*)/)
if (matches) {
var paramKey = matches[1];
var paramValue = param["value"];
+ var regex = new RegExp(":" + paramKey);
- ApiTaster.storeFormActionFor(form);
-
- var regex = new RegExp(":" + paramKey);
- var replacedAction = ApiTaster.formAction.replace(regex, paramValue);
-
- form.attr("action", replacedAction);
- } else {
- ApiTaster.storeFormActionFor(form);
+ formAction = formAction.replace(regex, paramValue);
}
});
+
+ form.attr("action", formAction);
},
enableNavTabsFor: function(contentElement) {
var container = this;
@@ -135,7 +135,7 @@
$("#show-api-response-div").enableNavTabsFor("pre");
});
});
-; FI"dependency_digest; F"%c3a4db47d342e321c9c26aebb158edbbI"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-22T10:24:16+10:00; FI"digest; F"%5609d7665c871abfe3d8c89b20ed4197I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
+; FI"dependency_digest; F"%944bf031adebf746f9031f99c7215b77I"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-25T12:41:09+10:00; FI"digest; F"%97c9fc1d1e60b97bee562b70a0986276I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
\ No newline at end of file