test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af in controller_scaffolding-1.1.1 vs test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af in controller_scaffolding-1.2.0

- old
+ new

@@ -1,8 +1,8 @@ {I" class:ETI"BundledAsset;FI"logical_path;TI"application.js;TI" pathname;TI"0$root/app/assets/javascripts/application.js;FI"content_type;TI"application/javascript;TI" -mtime;Tl+W÷SI" length;Ti°˜I" digest;TI"%fa4eedf66290c9dcc96c705f6f77fbbd;FI" source;TI"°˜/*! +mtime;Tl+K{1TI" length;Ti¯™I" digest;TI"%03bdee3c662a4075321e2ab4f86e4fe7;FI" source;TI"¯™/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ @@ -10313,11 +10313,11 @@ /** * Unobtrusive scripting adapter for jQuery * https://github.com/rails/jquery-ujs * - * Requires jQuery 1.7.0 or later. + * Requires jQuery 1.8.0 or later. * * Released under the MIT license * */ @@ -10334,20 +10334,20 @@ $.rails = rails = { // Link elements bound by jquery-ujs linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]', // Button elements bound by jquery-ujs - buttonClickSelector: 'button[data-remote], button[data-confirm]', + buttonClickSelector: 'button[data-remote]:not(form button), button[data-confirm]:not(form button)', // Select elements bound by jquery-ujs inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]', // Form elements bound by jquery-ujs formSubmitSelector: 'form', // Form input elements bound by jquery-ujs - formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])', + formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])', // Form input elements disabled during form submission disableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled', // Form input elements re-enabled after form submission @@ -10665,10 +10665,11 @@ } }); $document.delegate(rails.buttonClickSelector, 'click.rails', function(e) { var button = $(this); + if (!rails.allowAction(button)) return rails.stopEverything(e); if (button.is(rails.buttonDisableSelector)) rails.disableFormElement(button); var handleRemote = rails.handleRemote(button); @@ -10768,10 +10769,16 @@ else { return uri + separator + key + "=" + value; } } ; +function clear_search() { + frm = $("#search-form"); + $(frm).find("input#search_for").val(""); + $(frm).submit(); +} +; // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. @@ -10784,6 +10791,6 @@ // ; -;TI"required_assets_digest;TI"%d705fbd811982efa08ec9c615363aad8;FI" _version;TI"%2b66aa67c90052d553e0328c249bc9b0;F +;TI"required_assets_digest;TI"%84429a7745c64f5d8df3bcf6db49a66b;FI" _version;TI"%64b22cf9f770209c1e0beb31754a8cbc;F \ No newline at end of file