source: trunk/prototype/modules/calendar/js/drag_area.js @ 7653

Revision 7653, 500 bytes checked in by acoutinho, 11 years ago (diff)

Ticket #2215 - A agenda esta com problema para ser exibida no IE

RevLine 
[5957]1/* não permite que os elementos da nova agenda sejam selecionados e arrastados */
2// ie
3document.onselectstart = function() {return false;}
[5958]4// Mozilla Firefox
[5957]5document.onmousedown = function(event) {
6        // 'escapar' os campos onde o clique é bloqueado.
[7653]7        if (event && event.target.nodeName != 'INPUT' && event.target.nodeName != 'TEXTAREA' && event.target.nodeName != 'SELECT' && event.target.nodeName != 'OPTION'){
[5957]8                if (typeof event.preventDefault != 'undefined') {
9                        event.preventDefault();
10                }
11        }
12}
Note: See TracBrowser for help on using the repository browser.