Sha256: b6d750ad54514a605010bea4cd2c0ccb64c766b87e23acaacb007826b1fd62a2

Contents?: true

Size: 796 Bytes

Versions: 5

Compression:

Stored size: 796 Bytes

Contents

//= require admin/spree_backend
//= require admin/jquery-timer

$(document).ready(function(){
  // show datetimepicker
  $("#start_date").focusin(function () {
    var currentTime = new Date(),
    currrnt_hours = currentTime.getHours(),
    current_minutes = currentTime.getMinutes();
     $(this).datetimepicker({ dateFormat: "yy-mm-dd",
                              hour: currrnt_hours,
                              minute: current_minutes});
  });

  $("#end_date").focusin(function () {
     var currentTime = new Date(),
     currrnt_hours = currentTime.getHours(),
     current_minutes = currentTime.getMinutes();
     $(this).datetimepicker({ dateFormat: "yy-mm-dd",
                              hour: currrnt_hours,
                              minute: current_minutes});

  });
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_custom_notifications-0.5 app/assets/javascripts/admin/spree_custom_notifications.js
spree_custom_notifications-0.4 app/assets/javascripts/admin/spree_custom_notifications.js
spree_custom_notifications-0.3 app/assets/javascripts/admin/spree_custom_notifications.js
spree_custom_notifications-0.2 app/assets/javascripts/admin/spree_custom_notifications.js
spree_custom_notifications-0.1 app/assets/javascripts/admin/spree_custom_notifications.js