Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2737

Cleanup JS updateDivContent

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7
    • Component/s: None
    • Labels:
      None

      Description

      From tvb web gui, at least on page Large Scale Connectivity, I can see in the JS console the error:

      73:1 Uncaught ReferenceError: *updateDivContent* is not defined
          at HTMLSelectElement.onchange (73:1)
          at HTMLSelectElement.eval (eval at globalEval (jquery.js:2), <anonymous>:5:30)
      

      I suspect it will appear on other pages also.
      Searching from usages shows this function is only called from datatype_select_field.html

      onchange="updateDivContent('data_time_series', this, ''); updateDatatypeDiv(this)" title="Fully Loaded!">
      

      and defined in stepsUpdate.js

      The actual code of this function seems deprecated (refers to old range controls).
      We should analyze if we should simply remove the function or clean it.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              robert.vincze Robert Francisc Vincze
              Reporter:
              lia.domide Lia Domide
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours Time Not Required
                  2h