Sha256: 0791148d36e4bba651a69e36ce4c0344adbf78f53375bd6958c8be4580ce6932

Contents?: true

Size: 656 Bytes

Versions: 34

Compression:

Stored size: 656 Bytes

Contents

$(document).ready(function() {
  $('input.date_picker').live('focus', function(event) {
    var date_picker = $(this);
    if (typeof(date_picker.datepicker) == 'function') {
      if (!date_picker.hasClass('hasDatepicker')) {
        date_picker.datepicker();
        date_picker.trigger('focus');
      }
    }
    return true;
  });
  $('input.datetime_picker').live('focus', function(event) {
    var date_picker = $(this);
    if (typeof(date_picker.datetimepicker) == 'function') {
      if (!date_picker.hasClass('hasDatepicker')) {
        date_picker.datetimepicker();
        date_picker.trigger('focus');
      }
    }
    return true;
  });
});

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
active_scaffold-3.0.26 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold-3.0.25 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.24 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_clarity-3.0.24.2 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.23 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.22 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold-3.0.24 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.21 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold-3.0.23 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold-3.0.22 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold-3.0.21 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.20 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.19 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_san-3.0.18 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.18 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.17 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.16 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.15 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.14 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
active_scaffold_vho-3.0.13 lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js