Skip to content

Modularized dialog creation library - #97

Open
KOLANICH wants to merge 1 commit into
sieukrem:masterfrom
KOLANICH-tools:dialog
Open

Modularized dialog creation library#97
KOLANICH wants to merge 1 commit into
sieukrem:masterfrom
KOLANICH-tools:dialog

Conversation

@KOLANICH

@KOLANICH KOLANICH commented Sep 4, 2020

Copy link
Copy Markdown
Contributor

No description provided.

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
Copy Markdown
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?

Comment thread deploy/jN/includes/CSSLint.js Outdated
},
cell:function(r, arr){
for(var i=0,c=arr.length; i<c; i++)
r.insertCell().innerHTML = arr[i];

@KOLANICH KOLANICH Dec 26, 2020

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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