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 2d71d682
authored
Sep 12, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan fixlength saat get raw jika character is None
1 parent
1d7784d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
opensipkd/base/views/widget_os.py
opensipkd/base/views/widgets/select2_ms.pt
opensipkd/base/views/widget_os.py
View file @
2d71d68
...
@@ -172,14 +172,13 @@ class Select2MsWidget(Select2Widget):
...
@@ -172,14 +172,13 @@ class Select2MsWidget(Select2Widget):
**Attributes/Arguments**
**Attributes/Arguments**
Same as :func:`~deform.widget.SelectWidget`, with some extra options
Same as :func:`~deform.widget.Select
2
Widget`, with some extra options
listed here.
listed here.
url: url for slave select
slave: id of slave select
widget = widget_os.Select2MsWidget(url="https://slave_item_url?item_key=selected_value,
slave="slave_id")
tags: *bool*
Allow dynamic option creation ( default: ``False`` ).
See `select2 docs on tagging <https://select2.org/tagging>`_ for
more details.
"""
"""
template
=
"select2_ms.pt"
template
=
"select2_ms.pt"
...
...
opensipkd/base/views/widgets/select2_ms.pt
View file @
2d71d68
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
$("#${slave}").val("");
$("#${slave}").val("");
$("#${slave}").empty();
$("#${slave}").empty();
$("#${slave}").append('<option value="" selected disabled>Pilih Data...</option>');
$("#${slave}").append('<option value="" selected disabled>Pilih Data...</option>');
var
value = $(this).val();
let
value = $(this).val();
if (value) {
if (value) {
$.ajax({
$.ajax({
type: "GET",
type: "GET",
...
...
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