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:
james 2011-12-18 22:55:03 -05:00
parent ce27632ec9
commit 17e09b64af
2 changed files with 9 additions and 19 deletions

View File

@ -444,12 +444,7 @@ function showErrorSections() {
} }
$(document).ready(function() { $(document).ready(function() {
$.mask.masks = $.extend($.mask.masks,{ setAddShowEvents();
date:{ mask: '9999-19-39', selectCharsOnFocus: true, autoTab: false},
time:{ mask: '29:69', selectCharsOnFocus: true, autoTab: false}
})
$('input:text').setMask()
}); });
//Alert the error and reload the page //Alert the error and reload the page
@ -476,15 +471,3 @@ $(window).resize(function(){
$("#schedule_calendar").fullCalendar('render'); $("#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();
});

View File

@ -37,6 +37,13 @@ function openAddShowForm() {
$add_show_name.select(); $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(){ function makeAddShowButton(){