Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Plugins
  3. Back button on mini browser also works call history plugin

Back button on mini browser also works call history plugin

Scheduled Pinned Locked Moved Plugins
4 Posts 2 Posters 214 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    K
    kelmore
    wrote on last edited by
    #1

    When I click on the back button in the mini-browser, it seems the call history window also goes to the previous page. Like if I set calls from All to Answered only, it will revert to All after pressing back on the mini-browser.

    Call History 1.0.3
    Mini Browser 1.0.2
    FOP2 2.30.04

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Yep, there is a problem when multiple iframes are in use. I have yet to find out how to fix it, if I can fix it. Browser sercurity does not allow full access to iframe contents and that poses a problem. I will try to work on that.

      1 Reply Last reply
      0
      • N
        N
        nicolas
        wrote on last edited by
        #3

        Unfortunately, it is not possible to fix it. The history object is a global object, not individualized among separate components or frames. Call History and Browser plugins use iframes to show content. The iframe history is shared with the main window history (as it is a global object), so whenever you click a link on an iframe, the global history gets updated. If you click the back browser button (or the back icon on the browser plugin, that performs the same action), then the last updated frame gets one step back... So, if you changed a page on the call history plugin, you can get back by clicking the back button on the browser plugin (or your own browser back button). It is confusing, but is the way it is. History on modern browsers is a global object and api calls will work on the global object. In the same way, you can click the back button on the browser plugin several times and it will reach the main window history at some point.

        1 Reply Last reply
        0
        • K
          K
          kelmore
          wrote on last edited by
          #4

          Thanks for trying, I understand.
          I was able to change the file so that I could set a default state of "answered," so that using the browser back button won't change it from the one we look at most.

          in /var/www/html/fop2/admin/plugins/callhistory/callhistorybsgrid.php
          Change this line from:
          $mifilt = isset($_REQUEST['filterdispo'])?$_REQUEST['filterdispo']:'';
          to:
          $mifilt = isset($_REQUEST['filterdispo'])?$_REQUEST['filterdispo']:'answered';

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups