Bug Fix: for remove button
-
In line 140:
var cellLeft = row.insertCell(2); removeLink = document.createElement('a'); linkText = document.createTextNode('remove'); removeLink.setAttribute('onclick', 'remove_sidebar_link(\'$name\')'); removeLink.setAttribute('href', 'javacript:void(0)');
When add sidebar and want to remove it immediately you will redirect to javascript:void(0);
for Fix this bug add this instead of top codes:
var rowc = document.getElementById('sbg_table').rows.length; rowc = parseInt(rowc-1); var cellLeft = row.insertCell(2); removeLink = document.createElement('a'); linkText = document.createTextNode('remove'); removeLink.setAttribute('onclick', 'return remove_sidebar_link(\'$name\','+rowc+');return false;'); removeLink.setAttribute('href', 'javacript:void(0)');
It’s Done
Good Luck
- The topic ‘Bug Fix: for remove button’ is closed to new replies.