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
d07588a1
authored
Feb 14, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
problem with persistent modals persists
parent
e900c5f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
sails/src/assets/scripts/modules/student/controllers/addpicto.js
sails/src/assets/scripts/modules/student/views/addpicto.html
sails/src/assets/scripts/modules/student/controllers/addpicto.js
View file @
d07588a1
...
@@ -29,8 +29,6 @@ dashboardControllers.controller('AddPictoCtrl', function (
...
@@ -29,8 +29,6 @@ dashboardControllers.controller('AddPictoCtrl', function (
$scope
.
loadingCatPictos
=
false
;
$scope
.
loadingCatPictos
=
false
;
$scope
.
radioModel
=
'Middle'
;
$scope
.
radioModel
=
'Middle'
;
$scope
.
onlyOwn
=
onlyOwn
;
$scope
.
onlyOwn
=
onlyOwn
;
if
(
onlyOwn
)
$scope
.
source
=
'ownpictos'
;
/*
/*
* Get data about SymbolStix
* Get data about SymbolStix
...
@@ -101,8 +99,6 @@ dashboardControllers.controller('AddPictoCtrl', function (
...
@@ -101,8 +99,6 @@ dashboardControllers.controller('AddPictoCtrl', function (
$scope
.
load_own_pictos
=
function
()
{
$scope
.
load_own_pictos
=
function
()
{
$scope
.
source
=
'ownpictos'
;
$scope
.
source
=
'ownpictos'
;
$
(
'#own_group'
).
fadeIn
();
$http
.
get
(
config
.
backend
+
'/sup/'
+
supervisor
.
id
+
'/pictos'
)
$http
.
get
(
config
.
backend
+
'/sup/'
+
supervisor
.
id
+
'/pictos'
)
.
success
(
function
(
data
)
{
.
success
(
function
(
data
)
{
if
(
data
)
{
if
(
data
)
{
...
@@ -298,12 +294,16 @@ dashboardControllers.controller('AddPictoCtrl', function (
...
@@ -298,12 +294,16 @@ dashboardControllers.controller('AddPictoCtrl', function (
//Triggered when scrolling to bottom
//Triggered when scrolling to bottom
$scope
.
scroll
=
function
(){
$scope
.
scroll
=
function
(){
if
(
$scope
.
onlyOwn
)
return
;
$scope
.
loadingCatPictos
=
true
;
$scope
.
loadingCatPictos
=
true
;
$scope
.
page
+=
1
;
$scope
.
page
+=
1
;
var
request
=
""
;
var
request
=
""
;
if
(
$scope
.
breadcrumbs
.
length
==
1
){
if
(
$scope
.
breadcrumbs
.
length
==
1
)
{
//Request page X from all pictos (symbolstx)
//Request page X from all pictos (symbolstx)
request
=
config
.
backend
+
'/sup/'
+
supervisor
.
id
+
request
=
config
.
backend
+
'/sup/'
+
supervisor
.
id
+
'/pic_fromSymbolStx/page/'
+
$scope
.
page
+
'/limit/'
+
$scope
.
limit
;
'/pic_fromSymbolStx/page/'
+
$scope
.
page
+
'/limit/'
+
$scope
.
limit
;
...
@@ -373,6 +373,9 @@ dashboardControllers.controller('AddPictoCtrl', function (
...
@@ -373,6 +373,9 @@ dashboardControllers.controller('AddPictoCtrl', function (
$scope
.
loadingCatPictos
=
false
;
$scope
.
loadingCatPictos
=
false
;
});
});
}
}
};
};
if
(
onlyOwn
)
$scope
.
load_own_pictos
();
});
});
sails/src/assets/scripts/modules/student/views/addpicto.html
View file @
d07588a1
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<div
id=
"collections"
class=
"col-md-12 category-collection"
<div
id=
"collections"
class=
"col-md-12 category-collection"
ng-class=
"{ 'category-collection-loading': loadingCatPictos }"
ng-class=
"{ 'category-collection-loading': loadingCatPictos }"
data-loading=
"{{ 'loading_pictos' | translate }}"
>
data-loading=
"{{ 'loading_pictos' | translate }}"
>
<form
ng-submit=
"search()"
>
<form
ng-submit=
"search()"
ng-show=
"!onlyOwn"
>
<div
class=
"input-group"
id=
"search_pictos_box"
>
<div
class=
"input-group"
id=
"search_pictos_box"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"{{ 'filter' | translate }}"
<input
type=
"text"
class=
"form-control"
placeholder=
"{{ 'filter' | translate }}"
id=
"srch_term_picto"
name=
"srch_term_picto"
ng-model=
"srch_term_picto"
>
id=
"srch_term_picto"
name=
"srch_term_picto"
ng-model=
"srch_term_picto"
>
...
...
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