Skip to content

Commit

Permalink
rename method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Sep 25, 2015
1 parent 12b2888 commit 72208c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void glossaryFileUploaded(FileUploadEvent event) throws IOException {
glossaryFileUpload.setFileName(uploadedFile.getName());
}

public void glossaryFileCleared() {
public void clearGlossaryUpload() {
glossaryFileUpload = new GlossaryFileUploadHelper();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ public void sourceFileUploaded(FileUploadEvent event) throws IOException {

}

public void sourceFileCleared() {
public void clearSourceFileUpload() {
sourceFileUpload = new SourceFileUploadHelper();
}

Expand All @@ -1077,7 +1077,7 @@ public void transFileUploaded(FileUploadEvent event) throws IOException {
translationFileUpload.setFileContents(uploadedFile.getInputStream());
}

public void transFileCleared() {
public void clearTransFileUpload() {
translationFileUpload = new TranslationFileUploadHelper();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<span>#{msgs['jsf.Glossary.supportedFileFormat']}</span>
</div>

<a4j:jsFunction name="clearSelection" action="#{glossaryAction.glossaryFileCleared}"/>
<a4j:jsFunction name="clearSelection" action="#{glossaryAction.clearGlossaryUpload}"/>
<div class="form__item">
<rich:fileUpload id="upload-file"
fileUploadListener="#{glossaryAction.glossaryFileUploaded}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<div class="l--pad-top-quarter form__item txt--understated" id="uploadPanelMsg"></div>

<div class="form__item">
<a4j:jsFunction name="clearTransFileUpload" action="#{versionHomeAction.transFileCleared}"/>
<a4j:jsFunction name="clearTransFileUpload" action="#{versionHomeAction.clearTransFileUpload}"/>
<rich:fileUpload id="upload-file"
fileUploadListener="#{versionHomeAction.transFileUploaded}"
onfilesubmit="onTranslationFileSubmitted()"
Expand Down
2 changes: 1 addition & 1 deletion zanata-war/src/main/webapp/iteration/view.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
<h:outputText id="uploadSourcePanelHeader"/>
</f:facet>
<h:form id="uploadSrcForm" >
<a4j:jsFunction name="clearSourceUpload" action="#{versionHomeAction.sourceFileCleared}"/>
<a4j:jsFunction name="clearSourceUpload" action="#{versionHomeAction.clearSourceFileUpload}"/>

<rich:fileUpload
fileUploadListener="#{versionHomeAction.sourceFileUploaded}"
Expand Down

0 comments on commit 72208c1

Please sign in to comment.