Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
soko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
soko
Commits
c08949d2
Commit
c08949d2
authored
Dec 11, 2018
by
gaseema.n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inventory update
parent
bb2f1a84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
index.html
index.html
+1
-1
custom-script.js
js/custom-script.js
+1
-0
inventory.js
js/inventory.js
+16
-0
No files found.
index.html
View file @
c08949d2
...
...
@@ -3242,7 +3242,7 @@
</div>
<ul
class=
"sponsoredPrd-collapsible collapsible collapsible-accordion chStoreUpdate"
data-collapsible=
"accordion"
style=
"background:white; margin: 10px;"
>
</ul>
<div
class=
"fixed-action-btn direction-top active"
>
<a
onclick=
"$('#spnsrdModal').modal('open
')"
class=
"btn-floating opacitySelectedColor"
style=
"width: 55px; height: 55px; border-radius: 50%; line-height: 55px; font-size: 2em;"
>
<a
id=
"inventoryAddBtn"
onclick=
"$('#spnsrdModal').modal('open'); document.getElementById('inventoryAddBtn').classList.remove('pulse
')"
class=
"btn-floating opacitySelectedColor"
style=
"width: 55px; height: 55px; border-radius: 50%; line-height: 55px; font-size: 2em;"
>
<p
style=
"margin-top:0px !important;text-align:center;"
>
+
</p>
</a>
</div>
...
...
js/custom-script.js
View file @
c08949d2
...
...
@@ -120,6 +120,7 @@ angular.module('sokoApp', [])
}
if
(
getBitsWinOpt
(
'page'
)
==
'inventory'
)
{
openInventoryPage
();
isInventoryActive
()
if
(
getBitsWinOpt
(
'sel'
)
==
"add"
){
$
(
'#spnsrdModal'
).
modal
(
'open'
);
}
...
...
js/inventory.js
View file @
c08949d2
var
inventoryItemsActive
=
false
function
openInventoryPage
()
{
$
(
'#content > .container > div'
).
css
(
'display'
,
'none'
);
setTimeout
(
function
(
e
)
{
...
...
@@ -7,6 +9,20 @@ function openInventoryPage() {
sponpProdNamesInput
();
}
function
isInventoryActive
()
{
getObjectStore
(
'data'
,
'readwrite'
).
get
(
'soko-store-'
+
localStorage
.
getItem
(
'soko-active-store'
)
+
'-products'
).
onsuccess
=
function
(
event
)
{
var
reqs
=
JSON
.
parse
(
event
.
target
.
result
);
for
(
var
i
=
0
;
i
<
reqs
.
length
;
++
i
)
{
if
(
reqs
[
i
].
sponsored
==
"true"
)
{
inventoryItemsActive
=
true
}
}
if
(
inventoryItemsActive
!=
true
)
{
document
.
getElementById
(
'inventoryAddBtn'
).
classList
.
add
(
'pulse'
)
}
}
}
//Input Initiallization
var
sponProds
=
{}
...
...
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