Uploaded image for project: 'ngrinder'
  1. ngrinder
  2. NGRINDER-368

Agent approval in the agent page 2 is not supported

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: controller
    • Labels:
      None

      Description

      Currently, agent approval is only supported page 1.
      It's because the following code.

      $(".approved").click(function() {
      var sid = $(this).attr("sid");
      $.post(
      "$

      {req.getContextPath()}

      /agent/approve",

      { "ip": sid, "approve": "true" }

      ,
      function()

      { showSuccessMsg("Agent is approved"); window.location.reload(); }

      );
      });

      This code only binds to visible element.
      When we accessing page 2, this event is not bound so approval and unapproval are not working.

      Fix with live() call is necessary.

        Activity

        Hide
        junoyoon JunHo Yoon added a comment -

        Fixed in b33562e0ab8b0bbbd2d2759048a04b1087fbfe51

        Show
        junoyoon JunHo Yoon added a comment - Fixed in b33562e0ab8b0bbbd2d2759048a04b1087fbfe51
        Hide
        junoyoon JunHo Yoon added a comment -

        Already done

        Show
        junoyoon JunHo Yoon added a comment - Already done

          People

          • Assignee:
            junoyoon JunHo Yoon
            Reporter:
            junoyoon JunHo Yoon
            CC (Referrer):
            duban, Mavlarn Tuohuti
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: