preventdefault
This commit is contained in:
parent
765953536c
commit
a88553e4a2
@ -1200,7 +1200,9 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
var node;
|
var node;
|
||||||
node = $('form[name=delform] > *:not([id])');
|
node = $('form[name=delform] > *:not([id])');
|
||||||
return threading.thread(node);
|
$.bind(d.body, threading.preventDefault);
|
||||||
|
threading.thread(node);
|
||||||
|
return $.unbind(d.body, threading.preventDefault);
|
||||||
},
|
},
|
||||||
thread: function(node) {
|
thread: function(node) {
|
||||||
var div, op;
|
var div, op;
|
||||||
@ -1227,6 +1229,9 @@
|
|||||||
if (!(node.align || node.nodeName === 'CENTER')) {
|
if (!(node.align || node.nodeName === 'CENTER')) {
|
||||||
return threading.thread(node);
|
return threading.thread(node);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
preventDefault: function(e) {
|
||||||
|
return e.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
threadHiding = {
|
threadHiding = {
|
||||||
|
|||||||
@ -930,7 +930,10 @@ threading =
|
|||||||
init: ->
|
init: ->
|
||||||
# don't thread image controls
|
# don't thread image controls
|
||||||
node = $ 'form[name=delform] > *:not([id])'
|
node = $ 'form[name=delform] > *:not([id])'
|
||||||
|
# don't confuse other scripts *cough*/b/ackwash*cough*
|
||||||
|
$.bind d.body, threading.preventDefault
|
||||||
threading.thread node
|
threading.thread node
|
||||||
|
$.unbind d.body, threading.preventDefault
|
||||||
|
|
||||||
thread: (node) ->
|
thread: (node) ->
|
||||||
op = $.el 'div',
|
op = $.el 'div',
|
||||||
@ -957,6 +960,9 @@ threading =
|
|||||||
unless node.align or node.nodeName is 'CENTER'
|
unless node.align or node.nodeName is 'CENTER'
|
||||||
threading.thread node
|
threading.thread node
|
||||||
|
|
||||||
|
preventDefault: (e) ->
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
threadHiding =
|
threadHiding =
|
||||||
init: ->
|
init: ->
|
||||||
hiddenThreads = $.getValue "hiddenThreads/#{g.BOARD}/", {}
|
hiddenThreads = $.getValue "hiddenThreads/#{g.BOARD}/", {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user