Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d83df98
authored
Mar 16, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
penambahan get_urls
1 parent
3e68055a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
opensipkd/base/__init__.py
opensipkd/base/static/v3/js/osipkd.js
opensipkd/base/__init__.py
View file @
7d83df9
...
@@ -148,7 +148,7 @@ def add_global(event):
...
@@ -148,7 +148,7 @@ def add_global(event):
event
[
'allow_register'
]
=
allow_register
event
[
'allow_register'
]
=
allow_register
event
[
'change_unit'
]
=
change_unit
event
[
'change_unit'
]
=
change_unit
event
[
'get_params'
]
=
get_params
event
[
'get_params'
]
=
get_params
# event['route
_urls'] = get_urls
event
[
'get
_urls'
]
=
get_urls
def
get_params
(
params
,
alternate
=
None
,
settings
=
None
):
def
get_params
(
params
,
alternate
=
None
,
settings
=
None
):
...
...
opensipkd/base/static/v3/js/osipkd.js
View file @
7d83df9
...
@@ -32,6 +32,16 @@ $(document).ready(function () {
...
@@ -32,6 +32,16 @@ $(document).ready(function () {
*/
*/
});
});
jQuery
.
browser
=
{};
(
function
()
{
jQuery
.
browser
.
msie
=
false
;
jQuery
.
browser
.
version
=
0
;
if
(
navigator
.
userAgent
.
match
(
/MSIE
([
0-9
]
+
)\.
/
))
{
jQuery
.
browser
.
msie
=
true
;
jQuery
.
browser
.
version
=
RegExp
.
$1
;
}
})();
function
number_format
(
number
,
decimals
,
dec_point
,
thousands_sep
)
{
function
number_format
(
number
,
decimals
,
dec_point
,
thousands_sep
)
{
// Strip all characters but numerical ones.
// Strip all characters but numerical ones.
number
=
(
number
+
''
).
replace
(
/
[^
0-9+
\-
Ee.
]
/g
,
''
);
number
=
(
number
+
''
).
replace
(
/
[^
0-9+
\-
Ee.
]
/g
,
''
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment