CC-3210 Show: Date mask does not work when you
"Add This Show" -> "Close" -> "+ Show" - moved masking function to more appropriate place which also fixed the bug
This commit is contained in:
parent
ce27632ec9
commit
17e09b64af
|
@ -444,12 +444,7 @@ function showErrorSections() {
|
|||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$.mask.masks = $.extend($.mask.masks,{
|
||||
date:{ mask: '9999-19-39', selectCharsOnFocus: true, autoTab: false},
|
||||
time:{ mask: '29:69', selectCharsOnFocus: true, autoTab: false}
|
||||
})
|
||||
|
||||
$('input:text').setMask()
|
||||
setAddShowEvents();
|
||||
});
|
||||
|
||||
//Alert the error and reload the page
|
||||
|
@ -475,16 +470,4 @@ $(window).resize(function(){
|
|||
$('#schedule_calendar').fullCalendar('option', 'contentHeight', mainHeight)
|
||||
$("#schedule_calendar").fullCalendar('render');
|
||||
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
$.mask.masks = $.extend($.mask.masks,{
|
||||
date:{ mask: '9999-19-39', selectCharsOnFocus: true, autoTab: false},
|
||||
time:{ mask: '29:69', selectCharsOnFocus: true, autoTab: false}
|
||||
})
|
||||
|
||||
$('input:text').setMask()
|
||||
|
||||
setAddShowEvents();
|
||||
|
||||
});
|
||||
});
|
|
@ -37,6 +37,13 @@ function openAddShowForm() {
|
|||
$add_show_name.select();
|
||||
});
|
||||
}
|
||||
|
||||
$.mask.masks = $.extend($.mask.masks,{
|
||||
date:{ mask: '9999-19-39', selectCharsOnFocus: true, autoTab: false},
|
||||
time:{ mask: '29:69', selectCharsOnFocus: true, autoTab: false}
|
||||
})
|
||||
|
||||
$('input:text').setMask()
|
||||
}
|
||||
|
||||
function makeAddShowButton(){
|
||||
|
|
Loading…
Reference in New Issue