task_20699 #2
|
@ -95,7 +95,7 @@ public class CkanEventHandlerManager {
|
|||
|
||||
@Override
|
||||
public void onInsertMetadata(InsertMetadataEvent loadSelecteReleaseEvent) {
|
||||
|
||||
GWT.log("loadSelecteReleaseEvent: "+loadSelecteReleaseEvent);
|
||||
final Modal modal = new Modal(true, true);
|
||||
|
||||
modal.setTitle(WIDGET_CREATE_TITLE);
|
||||
|
@ -104,16 +104,19 @@ public class CkanEventHandlerManager {
|
|||
((Element)modal.getElement().getChildNodes().getItem(1)).addClassName("modal-body-custom");
|
||||
modal.add(new CreateDatasetForm(eventBus));
|
||||
modal.setCloseVisible(true);
|
||||
modal.show();
|
||||
|
||||
|
||||
// hide any popup panel opened
|
||||
modal.addHideHandler(new HideHandler() {
|
||||
|
||||
@Override
|
||||
public void onHide(HideEvent hideEvent) {
|
||||
GWT.log("HideEvent on modal fired");
|
||||
eventBus.fireEvent(new CloseCreationFormEvent());
|
||||
}
|
||||
});
|
||||
|
||||
GWT.log("show");
|
||||
modal.show();
|
||||
}
|
||||
});
|
||||
// bind on edit (TODO)
|
||||
|
|
|
@ -2,14 +2,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<script type="text/javascript"
|
||||
src="gCubeCkanDataCatalog/js/jquery-1.10.1.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="gCubeCkanDataCatalog/js/bootstrap.min.js"></script>
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="GCubeCkanDataCatalog.css">
|
||||
|
||||
<link type="text/css" rel="stylesheet"
|
||||
href="gCubeCkanDataCatalog/css/ol.css">
|
||||
<script type="text/javascript"
|
||||
src=gCubeCkanDataCatalog/js/jquery-1.10.1.min.js></script>
|
||||
<script type="text/javascript"
|
||||
src=gCubeCkanDataCatalog/js/bootstrap.min.js></script>
|
||||
<script type="text/javascript" src=gCubeCkanDataCatalog/js/ol.js></script>
|
||||
|
||||
<script type="text/javascript" src="gCubeCkanDataCatalog/js/ol.js"></script>
|
||||
|
||||
<script type="text/javascript"
|
||||
src="gCubeCkanDataCatalog/gCubeCkanDataCatalog.nocache.js"></script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue