Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-10535

Multivalue Global Hander Disable/Enable of return selected button

    Details

    • Similar issues:
      KULRICE-3219Move 'return selected' button location on multivalue lookups
      KULRICE-11214MultiValue Lookup - select only on this page and then deselect only on this page the return select button stays clickable.
      KULRICE-7256Multivalue lookup return not refreshing
      KULRICE-124012.4.0 CDT: Multivalue Lookup returned incident report on return selected
      KULRICE-3616Return Selected button on multivalue lookup has black border
      KULRICE-7223Multivalue lookup not returning results
      KULRICE-10302Analysis - Results not on the current page are not returned by multivalue lookup's "return selected" action
      KULRICE-9914Hitting certain buttons on a multivalue Lookup Results page after items have been selected results in a stack trace
      KULRICE-11690Change return value link to 'select' button
      KULRICE-7734Multiple select of Lookup does not return selection
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      Disable/Enable of return selected button – Write global handler instead of handler for each select (current JS method is setMultivalueLookupReturnButton in krad.utility.js)

      An example from krad.initialize.js :

          //add global action handler
          jQuery(document).on("click", "a[data-onclick], button[data-onclick], img[data-onclick], input[data-onclick]",
                  function (e) {
                      var functionData = jQuery(this).data("onclick");
                      eval("var actionFunction = function(e) {" + functionData + "};");
      
                      return actionFunction.call(this, e);
                  });
      

      Something like this in krad.initialize.js initFieldHandlers

      jQuery(document).on("change", "select with some unique data attribute specific to the multi return select controls", function (e ) {
         setMultivalueLookupReturnButton(this);
      });

      With the part to figure out being: "select with some unique data attribute specific to the multi return select controls"

        Issue Links

          Activity

          Hide
          Erik Meade added a comment - - edited
              // multi value select handler
              jQuery(document).on("change", "table.dataTable input:checkbox.kr-select-line", function (e) {
                  setMultivalueLookupReturnButton(this);
              });
          
          Show
          Erik Meade added a comment - - edited // multi value select handler jQuery(document).on( "change" , "table.dataTable input:checkbox.kr-select-line" , function (e) { setMultivalueLookupReturnButton( this ); });

            People

            • Assignee:
              Erik Meade
              Reporter:
              Erik Meade
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Time Spent - 4 hours, 30 minutes Remaining Estimate - 1 day, 3 hours, 30 minutes
                1d 3h 30m
                Logged:
                Time Spent - 4 hours, 30 minutes Remaining Estimate - 1 day, 3 hours, 30 minutes
                4h 30m

                  Structure Helper Panel