Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-4809

should be able to customize button text in edoclite

    Details

    • Type: Bug Fix
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.2.1
    • Fix Version/s: Backlog
    • Component/s: Development
    • Labels:
    • Rice Module:
      KEW
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      If you change the button text of "return to previous", the button will no longer work since the button text is submitted to see what button was pressed. An example of a solution is to change the <submit> html element to a <button type="submit" html element where the value submitted can be different than the text shown on the screen.

      Note, as a workaround, you could try doing this in jquery until a proper solution is in place:

      <script type="text/javascript" src="../scripts/jquery.js" />
      <script>

      function submitReturnToPrevious()

      { buttonClick('ReturnToPrevious'); var edocliteForm = document.getElementById('edoclite'); //for some reason, letting this happen onsubmit submits the form anyway... return validateOnSubmit(edocliteForm); }

      $(document).ready(function()

      { //get the button var submitButton = $("input[name=userAction][value='return to previous']"); //add the button we want, after it (one line, don't let it wrap) submitButton.after('<button type="submit" name="userAction" value="return to previous" onclick="return submitReturnToPrevious()" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size:100%; padding:1px 3px;">apply</button>'); //remove the original button submitButton.remove(); }

      );
      </script>

        Attachments

          Activity

          Error rendering 'com.atlassian.jira.jira-view-issue-plugin:activitymodule'. Please contact your JIRA administrators.

            People

            • Assignee:
              Unassigned
              Reporter:
              mchyzer Chris Hyzer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: