mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
fixed bootstrap button alignment issue when duplicating poll entries.
This commit is contained in:
@@ -984,15 +984,17 @@ function mozSwap(txtarea, newtext){
|
||||
|
||||
var e107_dupCounter = 1;
|
||||
function duplicateHTML(copy,paste,baseid){
|
||||
|
||||
if(document.getElementById(copy)){
|
||||
|
||||
e107_dupCounter++;
|
||||
var type = document.getElementById(copy).nodeName; // get the tag name of the source copy.
|
||||
|
||||
var but = document.createElement('input');
|
||||
var but = document.createElement('button');
|
||||
var br = document.createElement('br');
|
||||
|
||||
but.type = 'button';
|
||||
but.innerHTML = 'x';
|
||||
but.value = 'x';
|
||||
but.className = 'btn button';
|
||||
but.onclick = function(){ this.parentNode.parentNode.removeChild(this.parentNode); };
|
||||
@@ -1004,6 +1006,7 @@ function duplicateHTML(copy,paste,baseid){
|
||||
|
||||
newentry.appendChild(source);
|
||||
newentry.value='';
|
||||
newentry.className = 'form-inline';
|
||||
newentry.appendChild(but);
|
||||
newentry.appendChild(br);
|
||||
if(baseid)
|
||||
|
Reference in New Issue
Block a user