Browse Source

DIV-326 - changed implementation of clearDate to fix bug

pull/160/head
Mike Olund 8 years ago
parent
commit
1baa80fb28
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      edivorce/apps/core/static/js/main.js

+ 3
- 2
edivorce/apps/core/static/js/main.js View File

@ -158,8 +158,9 @@ var date_picker = function (selector, showOnFocus) {
$(this).closest(selector).find('input').attr('readonly','readonly');
}).on('hide', function(e) {
$(this).closest(selector).find('input').removeAttr('readonly');
}).on('clearDate', function(e) {
$(this).closest(selector).find('input').triggerHandler('change');
}).on('clearDate', function (e) {
var input = $(this).closest(selector).find('input');
ajaxCall(input.attr('name'), '')
});
};


Loading…
Cancel
Save