Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
458ba3f7
authored
Jan 09, 2018
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
search improvement fixed for chrome
parent
3bf623a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
sails/src/assets/scripts/modules/student/controllers/addpicto.js
sails/src/assets/scripts/modules/student/controllers/addpicto.js
View file @
458ba3f7
...
@@ -460,7 +460,13 @@ dashboardControllers.controller('AddPictoCtrl', function (
...
@@ -460,7 +460,13 @@ dashboardControllers.controller('AddPictoCtrl', function (
// Order by expression length
// Order by expression length
$scope
.
pictos
.
sort
(
function
(
a
,
b
){
$scope
.
pictos
.
sort
(
function
(
a
,
b
){
return
a
.
expressions
[
0
].
text
.
length
>
b
.
expressions
[
0
].
text
.
length
;
var
val
=
0
;
if
(
a
.
expressions
[
0
].
text
.
length
>
b
.
expressions
[
0
].
text
.
length
){
val
=
1
;
}
else
if
(
a
.
expressions
[
0
].
text
.
length
<
b
.
expressions
[
0
].
text
.
length
){
val
=
-
1
;
}
return
val
;
});
});
// No data warning
// No data warning
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment