Opened 13 years ago

Last modified 13 years ago

#560 new defect

Duplication of Javascript functions

Reported by: justinrowles Owned by: geonetwork-devel@…
Priority: critical Milestone: Future release
Component: General Version: v2.6.4
Keywords: Cc:

Description

doTabAction (for example) is defined in both metadata-editor.js and metadata-view.js.

When the package process runs, it combines both of these into gn.editor.js, which means whatever is in metadata-editor.js is effectively overwritten.

Attachments (1)

js.patch (4.0 KB ) - added by justinrowles 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by justinrowles, 13 years ago

Oops: metadata-show, not metadata-view.

comment:2 by justinrowles, 13 years ago

This, incidentally, is why the screen doesn't get disabled when switching tabs in edit mode. The version in metadata-show doesn't include the disableEditForm call.

comment:3 by justinrowles, 13 years ago

Oh. And it's also defined in remote-show.xsl

comment:4 by justinrowles, 13 years ago

Priority: minorcritical

The same problem occurs with doAction for example.

I'm marking this as critical as I think compiling metadata-editor and metadata-show together into gn.editor.js is silently breaking things (in this case the setBunload functionality).

by justinrowles, 13 years ago

Attachment: js.patch added
Note: See TracTickets for help on using tickets.