Revision 5957,
416 bytes
checked in by marcieli, 12 years ago
(diff) |
Ticket #2632 - Concluído: bloqueando os elementos para não serem selecionados e arrastados.
|
Rev | Line | |
---|
[5957] | 1 | /* não permite que os elementos da nova agenda sejam selecionados e arrastados */ |
---|
| 2 | // ie |
---|
| 3 | document.onselectstart = function() {return false;} |
---|
| 4 | // Mozila Firefox |
---|
| 5 | document.onmousedown = function(event) { |
---|
| 6 | // 'escapar' os campos onde o clique é bloqueado. |
---|
| 7 | if (event.target.nodeName != 'INPUT' && event.target.nodeName != 'TEXTAREA'){ |
---|
| 8 | if (typeof event.preventDefault != 'undefined') { |
---|
| 9 | event.preventDefault(); |
---|
| 10 | } |
---|
| 11 | } |
---|
| 12 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.