-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modularized dialog creation library #97
base: master
Are you sure you want to change the base?
Conversation
|
||
var CSSLintMenuCfg = { | ||
text:"CSS Lint", | ||
oninitpopup:function(){ | ||
this.verifyMenuItem.disabled = !/\.css/i.test(currentView.files[currentView.file]); | ||
this.verifyMenuItem.disabled = !/\.(css|php|html)/i.test(currentView.files[currentView.file]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the csslint work also on php and html files properly? Maybe it is worth to make it part of settings or control it via (un)check in the menu?
}, | ||
cell:function(r, arr){ | ||
for(var i=0,c=arr.length; i<c; i++) | ||
r.insertCell().innerHTML = arr[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh SHIT, I dislike this code, it feels like a vulnr.
function createDialog(cfg){ | ||
var header = ""; | ||
for(var i=0; i<cfg.header.length; i++) | ||
header +="<th>"+cfg.header[i]+"</th>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this one too. Should definitely try to improve this. But I don't remember currently why don't I use DOM API here and if it is possible at allmor not. In fact I have modularized that very long ago.
No description provided.