vendor/assets/javascripts/dynaspan/dynaspan.js in dynaspan-0.0.4 vs vendor/assets/javascripts/dynaspan/dynaspan.js in dynaspan-0.0.5
- old
+ new
@@ -1,14 +1,20 @@
-(function($){
+// 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){
- $('#dyna_span_div' + uniq_id_ref).show().find('input').focus();
+//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');
\ No newline at end of file