Skip to content

Commit

Permalink
Fix in ERQMAjaxObserverField
Browse files Browse the repository at this point in the history
In some circumstances the change event was bound to the field of the
previous page.
  • Loading branch information
swklein committed Aug 25, 2014
1 parent b8df275 commit dbba449
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div data-role="none" style = "display:none;"><webobject name = "InvSubBtn"/></div>
<script>
$('body').on( "pagecontainershow", function( event, ui ) {
$('<wo:str value = "$jqObserveFieldID" />').change(function(event) {
url = $('<wo:str value = "$jqObserveFieldID" />').closest('form').attr('action');
/*url = url.replace(/\/wo\//, '/ajax/');*/
Expand Down Expand Up @@ -33,4 +34,5 @@
$.get(url);
</wo:else>
});
} );
</script>

0 comments on commit dbba449

Please sign in to comment.