Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KOLANICH
Copy link
Contributor

@KOLANICH KOLANICH commented Sep 4, 2020

No description provided.


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]);
Copy link
Owner

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?

deploy/jN/includes/CSSLint.js Outdated Show resolved Hide resolved
},
cell:function(r, arr){
for(var i=0,c=arr.length; i<c; i++)
r.insertCell().innerHTML = arr[i];
Copy link
Contributor Author

@KOLANICH KOLANICH Dec 26, 2020

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>";
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants