iteration fix
This commit is contained in:
@@ -90,8 +90,8 @@ SQL.Designer.prototype.dbResponse = function(xmlDoc) {
|
|||||||
|
|
||||||
SQL.Designer.prototype.applyStyle = function() { /* apply style */
|
SQL.Designer.prototype.applyStyle = function() { /* apply style */
|
||||||
var style = this.getOption("style");
|
var style = this.getOption("style");
|
||||||
var i, link_elms;
|
var i, link_elms = document.querySelectorAll("link");
|
||||||
for (i=0; link_elms = document.getElementsByTagName("link"); i++) {
|
for (i=0; i<link_elms.length; i++) {
|
||||||
if (link_elms[i].getAttribute("rel").indexOf("style") != -1 && link_elms[i].getAttribute("title")) {
|
if (link_elms[i].getAttribute("rel").indexOf("style") != -1 && link_elms[i].getAttribute("title")) {
|
||||||
link_elms[i].disabled = true;
|
link_elms[i].disabled = true;
|
||||||
if (link_elms[i].getAttribute("title") == style) link_elms[i].disabled = false;
|
if (link_elms[i].getAttribute("title") == style) link_elms[i].disabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user