added check to avoid button duplication during Post cloning
This commit is contained in:
parent
bef9ac1d5c
commit
d6ae451360
@ -9,7 +9,7 @@ PostJumper =
|
||||
cb: @node
|
||||
|
||||
node: ->
|
||||
if @nodes.uniqueIDRoot and Conf['Unique ID Navigation']
|
||||
if @nodes.uniqueIDRoot and Conf['Unique ID Navigation'] and not @nodes.uniqueIDJumperRoot
|
||||
uniqueID = @nodes.uniqueID.innerText
|
||||
IDButtons = PostJumper.makeButtons 'uniqueIDJumper'
|
||||
$.after @nodes.uniqueIDRoot, IDButtons
|
||||
@ -19,7 +19,7 @@ PostJumper =
|
||||
PostJumper.uniqueIDsMap.set uniqueID, []
|
||||
PostJumper.uniqueIDsMap.get(uniqueID).push @nodes.quote.innerText
|
||||
|
||||
if @nodes.capcode and Conf['Capcode Navigation']
|
||||
if @nodes.capcode and Conf['Capcode Navigation'] and not @nodes.capcodeJumperRoot
|
||||
capcode = @nodes.capcode.innerText
|
||||
capcodeButtons = PostJumper.makeButtons 'capcodeJumper'
|
||||
$.after @nodes.capcode, capcodeButtons
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user