Sha256: e99b3358724f91d0309afcaa933120d6299eab82bfbce5cf70fbe37ba69c95a5

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

(function($){
  $.fn.dynaspan = function(){};

  $.fn.dynaspan.upLast = function(uniq_id_ref){
    $('#dyna_span_field_val_' + uniq_id_ref).val($('#last_dyna_span_val_' + uniq_id_ref).val());
  };

  $.fn.dynaspan.upShow = function(uniq_id_ref){
    $('#dyna_span_div' + uniq_id_ref).show().find('input').focus();
    $('#dyna_span_span' + uniq_id_ref).hide();
  };

  $.fn.dynaspan.upHide = function(uniq_id_ref){
    var field_val = $('#dyna_span_field_val_' + uniq_id_ref).val();
    $('#dyna_span_div' + uniq_id_ref + ' > form').trigger('submit.rails');
    $('#last_dyna_span_val_' + uniq_id_ref).val(field_val);
    $('#dyna_span_span' + uniq_id_ref).show().html(field_val);
    $('#dyna_span_div' + uniq_id_ref).hide();
  };
})(jQuery);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynaspan-0.0.4 vendor/assets/javascripts/dynaspan/dynaspan.js
dynaspan-0.0.3 vendor/assets/javascripts/dynaspan/dynaspan.js
dynaspan-0.0.2 vendor/assets/javascripts/dynaspan/dynaspan.js
dynaspan-0.0.1 vendor/assets/javascripts/dynaspan/dynaspan.js