Commit eec99d07 authored by Elias's avatar Elias

Annotations : renaming

parent 18464da1
......@@ -4,9 +4,9 @@
var annotationsAppNgramList = angular.module('annotationsAppNgramList', ['annotationsAppHttp']);
/*
* Controls Ngram displayed in the flat lists (called "extra-text")
* Controls one Ngram displayed in the flat lists (called "extra-text")
*/
annotationsAppNgramList.controller('NgramListController',
annotationsAppNgramList.controller('NgramController',
['$scope', '$rootScope', '$element', 'NgramHttpService',
function ($scope, $rootScope, $element, NgramHttpService) {
/*
......@@ -56,7 +56,7 @@
}]);
/*
* Template of the ngram element displayed in the flat lists (called "extra-text")
* Template of the ngram element displayed in the flat lists
*/
annotationsAppNgramList.directive('keywordTemplate', function () {
return {
......
......@@ -38,7 +38,7 @@
<ul class="list-group words-list clearfix">
<li ng-repeat="keyword in extraNgramList[listId] | startFrom:currentListPage * pageSize | limitTo:pageSize" class="list-group-item">
<div ng-controller="NgramListController" keyword-template class="keyword-container"></div>
<div ng-controller="NgramController" keyword-template class="keyword-container"></div>
</li>
</ul>
......@@ -50,7 +50,7 @@
</nav>
<div class="form-group">
<input type="text" class="form-control" id="{[{listId}]}-input" ng-keypress="onListSubmit($event, listId)">
<input autosave="search" maxlength="240" placeholder="Add any text" type="text" class="form-control" id="{[{listId}]}-input" ng-keypress="onListSubmit($event, listId)">
<button type="submit" class="form-control btn btn-default btn-primary" ng-click="onListSubmit($event, listId)">Add to {[{listName}]}</button>
</div>
</div>
......
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