# HG changeset patch # User Nicholas Jillings # Date 1501585036 -3600 # Node ID bcb741f602984d3767a3b9491f87681f93d431bd # Parent becd7e8e0a3ad5a58a98bafe5ed832bda254b475 #222 More dropdown labels and help diff -r becd7e8e0a3a -r bcb741f60298 test_create.html --- a/test_create.html Tue Aug 01 10:56:43 2017 +0100 +++ b/test_create.html Tue Aug 01 11:57:16 2017 +0100 @@ -141,11 +141,11 @@

Pre Test Survey

-
+

Survey Entry

-
+
Survey Type:
-
+
Unique Survey Entry ID:
-
+
Entry Name:
-
+
Mandatory:
-
+
Minimum Wait Time (s):
-
+
Box Size:
-
+
Minimum Selected:
-
+
Maximum Selected:
-
+
Minimum Value:
-
+
Maximum Value:
-
+
Video URL:
-
+

Statement

@@ -272,11 +272,11 @@

Post Test Survey

-
+

Survey Entry

-
+
Survey Type:
-
+
Unique Survey Entry ID:
-
+
Entry Name:
-
+
Mandatory:
-
+
Minimum Wait Time (s):
-
+
Box Size:
-
+
Minimum Selected:
-
+
Maximum Selected:
-
+
Minimum Value:
-
+
Maximum Value:
-
+
Video URL:
-
+

Statement

@@ -404,23 +404,23 @@

Interface (Globals)

-
+
Check all fragments played:
-
+
Check all fragments fully played:
-
+
Check all fragments have been moved:
-
+
Check all fragments have comments:
-
+
Enforce a scale usage: Minimum: @@ -428,19 +428,19 @@ Maximum:
-
+
Show master volume control:
-
+
Show playhead:
-
+
Show Page Count:
-
+
Show Fragment Comments:
@@ -468,7 +468,7 @@
- Repeat Page N-times: + Numer of repetitions:
@@ -549,11 +549,11 @@

Pre Page Survey

-
+

Survey Entry

-
+
Survey Type:
-
+
Unique Survey Entry ID:
-
+
Entry Name:
-
+
Mandatory:
-
+
Minimum Wait Time (s):
-
+
Box Size:
-
+
Minimum Selected:
-
+
Maximum Selected:
-
+
Minimum Value:
-
+
Maximum Value:
-
+
Video URL:
-
+

Statement

@@ -680,11 +680,11 @@

Post Page Survey

-
+

Survey Entry

-
+
Survey Type:
-
+
Unique Survey Entry ID: - +
-
+
Entry Name:
-
+
Mandatory:
-
+
Minimum Wait Time (s):
-
+
Box Size:
-
+
Minimum Selected:
-
+
Maximum Selected:
-
+
Minimum Value:
-
+
Maximum Value:
-
+
Video URL:
-
+

Statement

@@ -809,7 +809,7 @@
-
+

Interface

@@ -956,15 +956,15 @@
-
+

Audio Fragment

-
+
Unique ID:
-
+
URL: Full URL: {{page.hostURL}}{{fragment.url}} @@ -992,11 +992,11 @@
Anchor must be below: - +
Reference must be above: - +
Loudness: diff -r becd7e8e0a3a -r bcb741f60298 test_create/test_core.js --- a/test_create/test_core.js Tue Aug 01 10:56:43 2017 +0100 +++ b/test_create/test_core.js Tue Aug 01 11:57:16 2017 +0100 @@ -35,10 +35,14 @@ window.onload = function () { // Get the test interface specifications + toggleDropdowns(); +}; + +function toggleDropdowns() { $(function () { $('[data-toggle="popover"]').popover(); }); -}; +} function handleFiles(event) { var s = angular.element(event.currentTarget).scope(); @@ -149,6 +153,18 @@ $s.hideValidationMessages = function () { $s.showValidationMessages = false; } + $s.$watch(function () { + return document.querySelectorAll("div.pageNode").length; + }, $w.toggleDropdowns); + $s.$watch(function () { + return document.querySelectorAll("div.surveyentry").length; + }, $w.toggleDropdowns); + $s.$watch(function () { + return document.querySelectorAll("div.interface").length; + }, $w.toggleDropdowns); + $s.$watch(function () { + return document.querySelectorAll("div.audioelement").length; + }, $w.toggleDropdowns); }]); AngularInterface.controller("introduction", ['$scope', '$element', '$window', function ($s, $e, $w) {