Commit 2020fae7 authored by Robert Lyon's avatar Robert Lyon Committed by Bob Lyon
Browse files

Bug 1498702: Needing to show arrow icon as button



and fix the deleting of auth instance by deleting the correct div by
count rather than child node by count

Change-Id: I09cda531660519815b4f383cb4a229e6a594aba2
Signed-off-by: default avatarBob Lyon <bob@katipo.co.nz>
parent 24f1ce76
......@@ -72,7 +72,7 @@
function arrayIze(id) {
var thing = document.getElementById(id).value;
if(thing == '') {
if (thing == '') {
return new Array();
}
return thing.split(',');
......@@ -99,8 +99,8 @@
if(instanceArray[i] == id) {
instanceArray.splice(i, 1);
deleteArray.push(id);
var instanceListDiv = document.getElementById('instanceList');
instanceListDiv.removeChild(instanceListDiv.childNodes[i]);
var instances = jQuery('#instanceList').find('div');
instances.remove(i);
}
}
......@@ -193,14 +193,14 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div.
</label>
<span class="authIcons" id="arrows{{$instance->id}}">
{{if $instance->index + 1 < $instance->total}}
<a href="" onclick="move_down({{$instance->id}}); return false;">
<span class="icon icon-arrow-long-down"></span>
<a class="btn btn-link" href="" onclick="move_down({{$instance->id}}); return false;">
<span class="icon icon-long-arrow-down"></span>
<span class="sr-only">{{str tag=moveitemdown}}</span>
</a>
{{/if}}
{{if $instance->index != 0 }}
<a href="" onclick="move_up({{$instance->id}}); return false;">
<span class="icon icon-arrow-long-up"></span>
<a class="btn btn-link" href="" onclick="move_up({{$instance->id}}); return false;">
<span class="icon icon-long-arrow-up"></span>
<span class="sr-only">{{str tag=moveitemup}}</span>
</a>
{{/if}}
......
......@@ -19,3 +19,9 @@ Scenario: Creating an institution (selenium test)
And I press "Submit"
# Verifying the institution has been created
Then I should see "Institution added successfully"
# Adding some authentication options
And I select "webservice" from "dummySelect"
And I press "Add"
Then I should see "Webservice"
And I press "Submit"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment