Commit 9735bb12 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1498702: Needing to show arrow icon as button"

parents c03f895a 2020fae7
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
function arrayIze(id) { function arrayIze(id) {
var thing = document.getElementById(id).value; var thing = document.getElementById(id).value;
if(thing == '') { if (thing == '') {
return new Array(); return new Array();
} }
return thing.split(','); return thing.split(',');
...@@ -99,8 +99,8 @@ ...@@ -99,8 +99,8 @@
if(instanceArray[i] == id) { if(instanceArray[i] == id) {
instanceArray.splice(i, 1); instanceArray.splice(i, 1);
deleteArray.push(id); deleteArray.push(id);
var instanceListDiv = document.getElementById('instanceList'); var instances = jQuery('#instanceList').find('div');
instanceListDiv.removeChild(instanceListDiv.childNodes[i]); instances.remove(i);
} }
} }
...@@ -193,14 +193,14 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div. ...@@ -193,14 +193,14 @@ IMPORTANT: do not introduce any new whitespace into the instanceList div.
</label> </label>
<span class="authIcons" id="arrows{{$instance->id}}"> <span class="authIcons" id="arrows{{$instance->id}}">
{{if $instance->index + 1 < $instance->total}} {{if $instance->index + 1 < $instance->total}}
<a href="" onclick="move_down({{$instance->id}}); return false;"> <a class="btn btn-link" href="" onclick="move_down({{$instance->id}}); return false;">
<span class="icon icon-arrow-long-down"></span> <span class="icon icon-long-arrow-down"></span>
<span class="sr-only">{{str tag=moveitemdown}}</span> <span class="sr-only">{{str tag=moveitemdown}}</span>
</a> </a>
{{/if}} {{/if}}
{{if $instance->index != 0 }} {{if $instance->index != 0 }}
<a href="" onclick="move_up({{$instance->id}}); return false;"> <a class="btn btn-link" href="" onclick="move_up({{$instance->id}}); return false;">
<span class="icon icon-arrow-long-up"></span> <span class="icon icon-long-arrow-up"></span>
<span class="sr-only">{{str tag=moveitemup}}</span> <span class="sr-only">{{str tag=moveitemup}}</span>
</a> </a>
{{/if}} {{/if}}
......
...@@ -19,3 +19,9 @@ Scenario: Creating an institution (selenium test) ...@@ -19,3 +19,9 @@ Scenario: Creating an institution (selenium test)
And I press "Submit" And I press "Submit"
# Verifying the institution has been created # Verifying the institution has been created
Then I should see "Institution added successfully" 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
Markdown is supported
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