Hurricane Electric's IPv6 Tunnel Broker Forums
May 18, 2013, 08:05:34 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem updating IPv4 address through web interface  (Read 784 times)
kasperd
Founder, Netiter ApS
Hero Member
*****
Posts: 677


View Profile
« on: December 09, 2011, 09:21:55 am »

I tried to update the IPv4 address of a tunnel through the web interface, but it seems there is some javascript on the page that prevents me from doing so.

1. I go to the tunnel detail page.
2. I choose the input field with the IPv4 address.
3. I delete the old IPv4 address.
4. I copy the new IPv4 address from my terminal.
5. I try to paste the new IPv4 address into the input field.

At this point the input field doesn't exist any more. I assume some javascript has deleted it. Instead I see a text saying "New IP endpoint set!" even though I haven't pasted the new IPv4 address into the field yet.
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #1 on: December 12, 2011, 02:41:37 pm »

Have it in your clipboard before losing focus on the input field, for now.  I'll look at this tomorrow and see about improving the flow if you lose focus with an empty field.
Logged
kasperd
Founder, Netiter ApS
Hero Member
*****
Posts: 677


View Profile
« Reply #2 on: December 13, 2011, 04:54:19 am »

Have it in your clipboard before losing focus on the input field, for now.
Deleting the existing contents of the field overwrites the clipboard. So if I first copy the new IP to the clipboard, then delete the old IP from the field, then paste, it will be pasting the old IP instead of the new.
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #3 on: December 13, 2011, 06:06:53 am »

Deleting the existing contents of the field overwrites the clipboard. So if I first copy the new IP to the clipboard, then delete the old IP from the field, then paste, it will be pasting the old IP instead of the new.

Nothing in the JavaScript for that touches the clipboard.  I paste addresses in there all the time.  That particular behavior would either have to be something amiss on your side, or some really weird jQuery action in an edge case configuration.  In any case, I'll still see about keeping it an input field while it's blank and unfocused.
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #4 on: December 13, 2011, 10:02:04 am »

The page will now keep the input field visible if there's nothing in it at the time it loses focus.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!