Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lab-241
appbase
Commits
bf975d4f
Commit
bf975d4f
authored
May 09, 2016
by
mikamboo
Browse files
TG-55 #ready-for-test : Update api lib favorites endpoint, rename lib file
parent
49f844e1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
mobile/.jshintignore
View file @
bf975d4f
/node_modules/
www/app/libs/
LbS
ervice.js
www/app/libs/
lb-s
ervice
s
.js
www/lib
mobile/tests/unit-tests.conf.js
View file @
bf975d4f
...
...
@@ -17,7 +17,7 @@ module.exports = function(config) {
'
www/lib/angular-mocks/angular-mocks.js
'
,
'
www/lib/angular-resource/angular-resource.min.js
'
,
'
www/lib/angular-translate/angular-translate.min.js
'
,
'
www/app/libs/
LbS
ervices.js
'
,
'
www/app/libs/
lb-s
ervices.js
'
,
//-- Modules
'
www/app/app.js
'
,
...
...
mobile/www/app/libs/
LbS
ervices.js
→
mobile/www/app/libs/
lb-s
ervices.js
View file @
bf975d4f
This diff is collapsed.
Click to expand it.
mobile/www/app/shop/ShopService.js
View file @
bf975d4f
...
...
@@ -123,7 +123,7 @@ angular
* @return {$promise} promise
*/
self
.
addFavorite
=
function
(
userId
,
shopId
){
return
User
.
favorites
S
hops
.
link
({
return
User
.
favoriteshops
.
link
({
id
:
userId
,
fk
:
shopId
},
null
).
$promise
.
then
(
function
(
response
){
...
...
@@ -144,7 +144,7 @@ angular
* @return {$promise} promise
*/
self
.
removeFavorite
=
function
(
userId
,
shopId
){
return
User
.
favorites
S
hops
.
unlink
({
return
User
.
favoriteshops
.
unlink
({
id
:
userId
,
fk
:
shopId
}).
$promise
.
then
(
function
(
response
){
...
...
mobile/www/index.html
View file @
bf975d4f
...
...
@@ -13,7 +13,7 @@
<script
src=
"lib/ionic/js/ionic.bundle.js"
></script>
<!-- Other angularjs js libs -->
<script
src=
"app/libs/
LbS
ervices.js"
></script>
<script
src=
"app/libs/
lb-s
ervices.js"
></script>
<script
src=
"lib/angular-resource/angular-resource.min.js"
></script>
<script
src=
"lib/angular-translate/angular-translate.min.js"
></script>
...
...
Write
Preview
Supports
Markdown
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