guibik.min.js 1020 B

1234
  1. (function($){Drupal.behaviors.guibik={};Drupal.behaviors.guibik.attach=function(context){$('form.form-edit','.views-edit-view').each(function(index){var $this=$(this),_alt=false,_submit=function(event){event.preventDefault();$('input[type=submit]#edit-actions-save',$this).focus();$this.submit();return false;};$(document).bind({keydown:function(event){switch(event.keyCode){case 18:_alt=true;break;case 83:if(_alt)
  2. return _submit(event);}},keyup:function(event){switch(event.keyCode){case 18:_alt=false;break;}}});});};Drupal.behaviors.init_theme={};Drupal.behaviors.init_theme.attach=function(context){$('#messages-and-help > div.messages:not(.processed)').addClass('processed').each(function(){if($('a',this).size()||$(this).is('.error')||$(this).is('.warning')||$(this).text().length>100){$(this).prepend("<span class='close'>X</span>");$('span.close',this).click(function(){$(this).parent().slideUp('fast');});}
  3. else{$(this).animate({opacity:1},5000,'linear',function(){$(this).slideUp('fast');});}});};})(jQuery);