Project

General

Profile

« Previous | Next » 

Revision 36927

Changed a problem with automatically updating a request title when an action is performed (either in monitor or accounting)

View differences:

modules/uoa-goldoa-portal/trunk/src/main/java/eu/dnetlib/client/monitor/MonitorFundingRequestsWidget.java
17 17
import com.google.gwt.event.dom.client.ClickHandler;
18 18
import com.google.gwt.i18n.client.DateTimeFormat;
19 19
import com.google.gwt.user.client.Timer;
20
import com.google.gwt.user.client.Window;
20 21
import com.google.gwt.user.client.rpc.AsyncCallback;
21 22
import com.google.gwt.user.client.ui.*;
22 23
import com.google.gwt.user.client.ui.Label;
......
415 416
                    if(requestInfo.getPublication()!=null &&
416 417
                            (requestInfo.getPublication().getRepository()!=null || !requestInfo.getPublication().getRepository().equals("")
417 418
                                    || requestInfo.getPublication().getDoi()!=null || !requestInfo.getPublication().getDoi().equals(""))) {
418
                        statusHeading.setHTML("<img src=\"./imgs/warning_h20.png\" /><span class=\"status\">" + requestInfo.getStatus().getValue().toUpperCase() + "</span>");
419
                        statusHeading.setHTML("<img src=\"./imgs/warning_h20.png\" /><span class=\"status\">" + requestStatus.getValue().toUpperCase() + "</span>");
419 420
                    } else {
420
                        statusHeading.setHTML("<span class=\"status\">" + requestInfo.getStatus().getValue().toUpperCase() + "</span>");
421
                        statusHeading.setHTML("<span class=\"status\">" + requestStatus.getValue().toUpperCase() + "</span>");
421 422
                    }
422 423
                    statusHeading.addStyleName("float-right");
423 424
                    statusHeading.addStyleName("statusHeading");
424 425

  
425
                    accordion.getHeading().clear();
426
                    accordion.getHeading().remove(1);
426 427
                    accordion.getHeading().add(statusHeading);
427 428

  
428 429
                    String heading = "\"" + requestInfo.getPublication().getTitle() + "\"" + " (" + dtf.format(requestInfo.getDate()) + ")";
modules/uoa-goldoa-portal/trunk/src/main/java/eu/dnetlib/client/accountingmonitor/AccountingMonitorFundingRequestsWidget.java
417 417
                    if(requestInfo.getPublication()!=null &&
418 418
                            (requestInfo.getPublication().getRepository()!=null || !requestInfo.getPublication().getRepository().equals("")
419 419
                                    || requestInfo.getPublication().getDoi()!=null || !requestInfo.getPublication().getDoi().equals(""))) {
420
                        statusHeading.setHTML("<img src=\"./imgs/warning_h20.png\" /><span class=\"status\">" + requestInfo.getStatus().getValue().toUpperCase() + "</span>");
420
                        statusHeading.setHTML("<img src=\"./imgs/warning_h20.png\" /><span class=\"status\">" + requestStatus.getValue().toUpperCase() + "</span>");
421 421
                    } else {
422
                        statusHeading.setHTML("<span class=\"status\">" + requestInfo.getStatus().getValue().toUpperCase() + "</span>");
422
                        statusHeading.setHTML("<span class=\"status\">" + requestStatus.getValue().toUpperCase() + "</span>");
423 423
                    }
424 424
                    statusHeading.addStyleName("float-right");
425 425
                    statusHeading.addStyleName("statusHeading");
426 426

  
427
                    accordion.getHeading().clear();
427
                    accordion.getHeading().remove(1);
428 428
                    accordion.getHeading().add(statusHeading);
429 429

  
430 430
                    String heading = "\"" + requestInfo.getPublication().getTitle() + "\"" + " (" + dtf.format(requestInfo.getDate()) + ")";

Also available in: Unified diff