-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add update container support for links and buttons
- Loading branch information
Showing
8 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 27 additions & 1 deletion
28
...s/Ajax/ERJQMobile/Components/Nonlocalized.lproj/ERQMSubmitButton.wo/ERQMSubmitButton.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
<wo:if condition = "$updateContainerID"> | ||
<div data-role = "none" style = "display:none;"><webobject name = "InvSubBtn" /></div> | ||
</wo:if> | ||
<wo:if condition = "$hasAction"> <webobject name = "BtnAction" /> </wo:if> | ||
<wo:else><webobject name = "BtnDirectAction" /></wo:else> | ||
<wo:else><webobject name = "BtnDirectAction" /></wo:else> | ||
<wo:if condition = "$updateContainerID"> | ||
<script> | ||
$('body').on( "pagecontainershow", function( event, ui ) { | ||
$('<wo:str value = "$jqJavaScriptElementID" />').click(function(event) { | ||
url = $('<wo:str value = "$jqJavaScriptElementID" />').closest('form').attr('action'); | ||
/*url = url.replace(/\/wo\//, '/ajax/');*/ | ||
data = $('<wo:str value = "$jqJavaScriptElementID" />').closest('form').serialize(); | ||
url = url + '?_jqma=1&<wo:str value = "$invSubBtnId" />=1&AJAX_SUBMIT_BUTTON_NAME='; | ||
url = url + $('<wo:str value = "$jqInvSubBtnId" />').attr('name'); | ||
if (data.length > 0) { | ||
url = url + "&"; | ||
url = url + data; | ||
} | ||
url = url + "&_ju="; | ||
url = url + '<wo:str value = "$updateContainerID" />'; | ||
$(".ui-page").addClass('ui-disabled'); | ||
$.mobile.loading( "show" ); | ||
$('#<wo:str value = "$updateContainerID" />').load(url, function() { $.mobile.loading( "hide" ); $(".ui-page").removeClass('ui-disabled'); $('#<wo:str value = "$updateContainerID" />').trigger('create'); } ); | ||
return false; | ||
}); | ||
} ); | ||
</script> | ||
</wo:if> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters