Skip to content

Commit

Permalink
Merge pull request #493 from Maheshgopal/OLE-8725_8716
Browse files Browse the repository at this point in the history
OLE-8716 toggle issue in loan
  • Loading branch information
peris committed Mar 4, 2016
2 parents 2a8e609 + acaab57 commit 71661f0
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.

Large diffs are not rendered by default.

Expand Up @@ -68,7 +68,7 @@ public class OLEPlaceRequestForm extends UifFormBase {
private String existingAddressType;
private boolean displayRequestType=false;
private boolean addressUpdated;

private boolean showOk=false;
private String requestNote;

private String pickUpLocation;
Expand Down Expand Up @@ -505,4 +505,12 @@ public String getRequestNote() {
public void setRequestNote(String requestNote) {
this.requestNote = requestNote;
}

public boolean isShowOk() {
return showOk;
}

public void setShowOk(boolean showOk) {
this.showOk = showOk;
}
}
Expand Up @@ -96,8 +96,9 @@
<bean id="OLEOverrideButtons" parent="Uif-HorizontalBoxSection">
<property name="items">
<list>
<bean id="OLEPlaceRequestOverrideButton" parent="Uif-SecondaryActionButton-Small" p:methodToCall="overrideRequest" p:actionLabel="Override" p:successCallback="cancelOverride();" p:render="@{!blockOverride}"/>
<bean id="OLEPlaceRequestCancelButton" parent="Uif-SecondaryActionButton-Small" p:actionScript="cancelOverride();" p:actionLabel="cancel"/>
<bean id="OLEPlaceRequestOverrideButton" parent="Uif-SecondaryActionButton-Small" p:methodToCall="overrideRequest" p:actionLabel="Override" p:successCallback="cancelOverride();" p:render="@{!blockOverride and !showOk}"/>
<bean id="OLEPlaceRequestCancelButton" parent="Uif-SecondaryActionButton-Small" p:actionScript="cancelOverride();" p:actionLabel="cancel" p:render="@{!showOk}"/>
<bean id="OLEPlaceRequestOkButton" parent="Uif-SecondaryActionButton-Small" p:render="@{showOk}" p:actionLabel="ok" p:actionScript="cancelOverride();"/>
</list>
</property>
</bean>
Expand Down
Expand Up @@ -22,7 +22,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">

<bean id="currentLoanListSection-HorizontalBoxSection" p:onClickScript="toggleCurrentLoanSection()" parent="Uif-HorizontalBoxSection" p:style="width:1300px;margin-left:auto; margin-right:0;" p:render="@{loanDocumentListForCurrentSession.size() > 0}">
<bean id="currentLoanListSection-HorizontalBoxSection" parent="Uif-HorizontalBoxSection" p:style="width:1300px;margin-left:auto; margin-right:0;" p:render="@{loanDocumentListForCurrentSession.size() > 0}">
<property name="headerText" value="&lt;a&gt;Items Checked Out This Session&lt;/a&gt;"/>
<property name="items">
<list>
Expand Down
Expand Up @@ -25,7 +25,7 @@
<th>Pending Requests</th>
<th>Send Notices</th>
</thead>
<tbody onclick="toggleExistingLoanSection()" >
<tbody>
<#list manager.searchLines as line>
<tr class="odd">
<td><@existing_loan_checkbox_control line 'checkNo' container "" /></td>
Expand Down
24 changes: 14 additions & 10 deletions ole-app/olefs/src/main/webapp/ole/deliver/loan/script/circ.js
Expand Up @@ -3,17 +3,9 @@ function openLightboxOnLoad(dialogId) {
jQuery('.uif-dialogButtons').button();
}

function toggleCurrentLoanSection(){
jq( "#currentLoanListSection-HorizontalBoxSection" ).click(function() {
jq( "#currentLoanList-HorizontalBoxSection" ).toggle();
});
}

function toggleExistingLoanSection(){
jq( "#existingLoanItemListSection-HorizontalBoxSection" ).click(function() {
jq( "#existingLoanItemList-HorizontalBoxSection" ).toggle();
});
}



function openLightboxOnLoadWithOverrideParameters(dialogId,overrideParameters) {
showLightboxComponent(dialogId, overrideParameters);
Expand Down Expand Up @@ -163,6 +155,18 @@ jq(document).ready(function () {
}
}
});


jq( "#existingLoanItemListSection-HorizontalBoxSection h3").live("click",function() {
jq( "#existingLoanItemList-HorizontalBoxSection" ).toggle();

});

jq( "#currentLoanListSection-HorizontalBoxSection h3" ).live("click",function() {
jq( "#currentLoanList-HorizontalBoxSection" ).toggle();
});


});

function setTimeoutInterval(interval){
Expand Down

0 comments on commit 71661f0

Please sign in to comment.