Skip to content

Rewrite of the javascript part #5

@dedlfix

Description

@dedlfix

Could you please have a look at dedlfix@1dbaa5a (comments added: dedlfix@4389b4d)

I tried to simplify the code, getting rid of some similar looking code in favor of functions. I also removed the two global arrays. Now a new editor is created when the filter changes to Ace, and removed when changed to other. Did these arrays have any purpose that is now gone?

Other changes:

  • translatable labels (but no new language strings)
  • made cookie names unique for each layout, snippet, and page part
  • "last updated" message stays below the editor
  • #add-part-button click event handler removed - doesn't seem necessary

Is there any other feature that I accidentally removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions