// $Id: script.js,v 1.2 2008/08/12 16:44:42 jmburnz Exp $ /** * Animates submit buttons */ var Wire = {}; // jump to the value in a select drop down Wire.go = function(e) { var destination = e.options[e.selectedIndex].value; if (destination && destination != 0) location.href = destination; }; // prevent users from clicking a submit button twice Wire.formCheck = function() { // only apply this to node and comment and new user registration forms var forms = $("#node-form>div>div>#edit-submit,#comment-form>div>#edit-submit,#user-register>div>#edit-submit"); // insert the saving div now to cache it for better performance and to show the loading image $('

Guardando…

').insertAfter(forms); forms.click(function() { $(this).siblings("input[@type=submit]").hide(); $(this).hide(); $("#saving").show(); var notice = function() { $('

Not saving? Wait a few seconds, reload this page, and try again. Every now and then the internet hiccups too :-)

').appendTo("#saving").fadeIn(); }; // append notice if form saving isn't work, perhaps a timeout issue setTimeout(notice, 24000); }); }; // Global Killswitch. if (Drupal.jsEnabled) { $(document).ready(Wire.formCheck); } //Limpia el formulario de busqueda $(document).ready(function() { $('#formBusquedaPagina input[type=text]').focus(function() { $(this).val(''); }); });