Chart Widget unresponsive

Bug #1641522 reported by Alexandros Hrissalos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Committed
Medium
John-Magne Bredal
4.6
Fix Released
Medium
John-Magne Bredal

Bug Description

After adding a Chart widget on the home screen, using the "add widget" button located on home screen i can not remove or edit its properties, i can only move it around on the screen.
NAV version 4.5.3
browsers tried Chrome, Chromium, Internet explorer
error mesage in browser developer tools:
VM162:4 Uncaught SyntaxError: Unexpected token ,
    at eval (<anonymous>)
    at Function.globalEval (http://nav.lns.local/static/js/libs/jquery.js:2:2552)
    at ua (http://nav.lns.local/static/js/libs/jquery.js:3:13119)
    at n.fn.init.append (http://nav.lns.local/static/js/libs/jquery.js:3:14403)
    at n.fn.init.<anonymous> (http://nav.lns.local/static/js/libs/jquery.js:3:15505)
    at K (http://nav.lns.local/static/js/libs/jquery.js:2:30256)
    at n.fn.init.html (http://nav.lns.local/static/js/libs/jquery.js:3:15186)
    at NavletController.handleSuccessfulRequest (http://nav.lns.local/static/js/src/plugins/navlet_controller.js?bust=4.5.3:76:23)
    at Object.<anonymous> (http://nav.lns.local/static/js/src/plugins/navlet_controller.js?bust=4.5.3:65:22)
    at i (http://nav.lns.local/static/js/libs/jquery.js:2:27065)

Changed in nav:
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 4.5.4
status: New → In Progress
Revision history for this message
Alexandros Hrissalos (alexlind) wrote :

just to be sure it is correct, i see added milestone 4.5.4
i am using version 4.5.3

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

That is correct. We continually release bugfix-release of NAV. Milestone is the first NAV-release expected to contain the bugfix.

We also provide individual patches for bugfixes if applicable - like this:

Fix here:
https://nav.uninett.no/hg/nav/rev/28ce2acd82fe

This can be applied locally with the patch command.

Revision history for this message
Alexandros Hrissalos (alexlind) wrote :

I got two simmilar paths with that file.
./usr/share/pyshared/nav/web/navlets/graph.py
./usr/lib/python2.7/dist-packages/nav/web/navlets/graph.py

i am a newbie in linux, running debian 8 atm
shall i try patching both files ?

Revision history for this message
Alexandros Hrissalos (alexlind) wrote :

because of not being familiar with the patch command i just found the two lines of code that needed adding and added them and then i commented out the two lines that neded removing, noticing that it was just a move of code within itself, thanks for the response and the help :)

Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

Glad you made it =)

The correct file is this one:
./usr/share/pyshared/nav/web/navlets/graph.py

Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.