Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
137
Merge Requests
137
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
2d5f45e0
Commit
2d5f45e0
authored
Aug 16, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Bookmark Manager: Update app cache and fixs
parent
48257d7f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
21 deletions
+29
-21
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_appcache.xml
...page_module/gadget_officejs_bookmark_manager_appcache.xml
+4
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_preference_js.js
...age_module/gadget_officejs_bookmark_page_preference_js.js
+20
-14
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_preference_js.xml
...ge_module/gadget_officejs_bookmark_page_preference_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
...eItem/web_page_module/gadget_officejs_bookmark_view_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
...Item/web_page_module/gadget_officejs_bookmark_view_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_appcache.xml
View file @
2d5f45e0
...
...
@@ -193,6 +193,8 @@ gadget_erp5_search_editor.js\n
gadget_erp5_sort_editor.html\n
gadget_erp5_sort_editor.js\n
\n
gadget_erp5_field_checkbox.html\n
gadget_erp5_field_checkbox.js\n
gadget_officejs_bookmark_manager_router.html\n
gadget_officejs_jio_bookmark_view.html\n
gadget_officejs_jio_bookmark_view.js\n
...
...
@@ -350,7 +352,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.1
1869.34421.55569
</string>
</value>
<value>
<string>
961.1
6277.24517.44253
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -368,7 +370,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
150
1841135.17
</float>
<float>
150
2876178.53
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_preference_js.js
View file @
2d5f45e0
...
...
@@ -3,18 +3,6 @@
(
function
(
window
,
RSVP
,
rJS
,
URL
)
{
"
use strict
"
;
function
saveOptionDict
(
gadget
)
{
var
option_dict
=
{
search_engine
:
gadget
.
element
.
querySelector
(
"
.options input[name=
\"
search_engine
\"
]
"
).
value
,
auto_redirect
:
gadget
.
element
.
querySelector
(
"
.options input[name=
\"
auto_redirect
\"
]
"
).
checked
};
return
gadget
.
setSetting
(
"
option
"
,
option_dict
);
}
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
...
...
@@ -23,6 +11,8 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
...
...
@@ -83,7 +73,7 @@
"
css_class
"
:
""
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
key
"
:
"
title
"
,
"
key
"
:
"
auto_redirect
"
,
"
hidden
"
:
0
,
"
type
"
:
"
CheckBoxField
"
},
...
...
@@ -116,7 +106,23 @@
});
})
.
onEvent
(
"
submit
"
,
function
()
{
saveOptionDict
(
this
);
var
gadget
=
this
;
return
gadget
.
notifySubmitting
()
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
"
form_view
"
);
})
.
push
(
function
(
form_gadget
)
{
return
form_gadget
.
getContent
();
})
.
push
(
function
(
content
)
{
return
RSVP
.
all
([
gadget
.
setSetting
(
'
bookmark_auto_redirect
'
,
content
.
auto_redirect
),
gadget
.
setSetting
(
'
bookmark_search_engine
'
,
content
.
search_engine
)
]);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
(
'
Preferences Saved
'
);
});
});
}(
window
,
RSVP
,
rJS
,
URL
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_preference_js.xml
View file @
2d5f45e0
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
9320.43291.25821
</string>
</value>
<value>
<string>
961.
29122.59801.40686
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
150
1746619.11
</float>
<float>
150
2876708.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
View file @
2d5f45e0
...
...
@@ -111,7 +111,7 @@
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
description
"
:
{
"
my_
description
"
:
{
"
description
"
:
""
,
"
title
"
:
"
Description
"
,
"
default
"
:
gadget
.
state
.
doc
.
description
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
View file @
2d5f45e0
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.1
1872.7503.60654
</string>
</value>
<value>
<string>
961.1
6277.24517.44253
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
150
1841404.2
</float>
<float>
150
3056104.29
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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