Commit dc1e10e5 authored by Christodoulos Psaltis's avatar Christodoulos Psaltis
Browse files

Fixes in metadata dialogs

This includes:

* workaround for mask not appearing in add dialog
* reset of metadata list on lcosing the edit dialog

Refs #375
parent a73a0fde
......@@ -1163,7 +1163,6 @@ input.machine {
.meta-modal button {
font-size: 80%;
width: 87px;
float: right;
background-color: #5599FF;
border: 0px solid #5599FF;
......
......@@ -593,7 +593,15 @@ function editMetadata() {
top: '10%',
closeOnClick: false,
oneInstance: false,
load: false
load: false,
onClose: function() {
// remove all entries so they won't be preloaded next time you open the dialog
$("#editor-1 div.content ul.meta-list").empty();
},
onLoad: function() {
// this is a work around for the mask not appearing problem
$("#editor-1").expose();
}
});
// get metadata for current server and fill the dialog
serverID = $("#editor-1 h3").attr('id');
......@@ -611,7 +619,11 @@ function addMetadata() {
top: '10%',
closeOnClick: false,
oneInstance: false,
load: false
load: false,
onLoad: function() {
// this is a work around for the mask not appearing problem
$("#editor-2").expose();
}
});
$("a#meta-editor-2").data('overlay').load();
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment