Sha256: fbbb31a76131a4b0c96e7b94e01f58e1006fd3639456d0a520ec92b2a5d1e001
Contents?: true
Size: 854 Bytes
Versions: 1
Compression:
Stored size: 854 Bytes
Contents
// MIT LICENSE // Copyright (c) 2014 Daniel P. Clark (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){ //setTimeout( // function(){ $('#dyna_span_div' + uniq_id_ref).show().find('.dyna-span-input').focus(); $('#dyna_span_span' + uniq_id_ref).hide(); // }, 0 //); }; $.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynaspan-0.0.5 | vendor/assets/javascripts/dynaspan/dynaspan.js |