minor fix to goToDatasetButton style due to changed catalogue's url format
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@139816 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5b2ba96dfe
commit
7d88d2ab01
|
@ -44,6 +44,7 @@ import com.github.gwtbootstrap.client.ui.constants.ControlGroupType;
|
|||
import com.github.gwtbootstrap.client.ui.resources.Bootstrap.Tabs;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.SelectElement;
|
||||
import com.google.gwt.dom.client.Style.Float;
|
||||
import com.google.gwt.dom.client.Style.Unit;
|
||||
import com.google.gwt.event.dom.client.ChangeEvent;
|
||||
import com.google.gwt.event.dom.client.ChangeHandler;
|
||||
|
@ -901,7 +902,11 @@ public class CreateDatasetForm extends Composite{
|
|||
final String datasetUrl = createdDatasetBean.getSource();
|
||||
goToDatasetButtonPanel.setVisible(true);
|
||||
goToDatasetButton.setVisible(true);
|
||||
goToDatasetButton.setText(datasetUrl);
|
||||
goToDatasetButton.getElement().getStyle().setFloat(Float.LEFT);
|
||||
goToDatasetButton.setText(
|
||||
(datasetUrl.length() > 100 ?
|
||||
datasetUrl.substring(0, 100) + "..." : datasetUrl)
|
||||
);
|
||||
goToDatasetButton.setHref(datasetUrl);
|
||||
goToDatasetButton.addClickHandler(new ClickHandler() {
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ import com.github.gwtbootstrap.client.ui.TextArea;
|
|||
import com.github.gwtbootstrap.client.ui.TextBox;
|
||||
import com.github.gwtbootstrap.client.ui.constants.AlertType;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.Style.Float;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.event.shared.HandlerManager;
|
||||
|
@ -64,7 +65,11 @@ public class AddResourceToDataset extends Composite{
|
|||
this.datasetId = datasetId;
|
||||
|
||||
this.datasetOrg = datasetOrg;
|
||||
goToDatasetButton.setText(datasetUrl);
|
||||
goToDatasetButton.getElement().getStyle().setFloat(Float.LEFT);
|
||||
goToDatasetButton.setText(
|
||||
(datasetUrl.length() > 100 ?
|
||||
datasetUrl.substring(0, 100) + "..." : datasetUrl)
|
||||
);
|
||||
goToDatasetButton.setHref(datasetUrl);
|
||||
goToDatasetButton.addClickHandler(new ClickHandler() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue