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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
15da544e
Commit
15da544e
authored
Oct 16, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_xhtml_style] ckeditor: make is responsive as soon as possible
parent
40f6c8fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
...lateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
+6
-8
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_ckeditor/ckeditor.gadget.js.js
View file @
15da544e
...
...
@@ -128,6 +128,7 @@
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
this
.
listenToResize
();
return
this
.
changeState
({
key
:
options
.
key
,
value
:
options
.
value
||
""
,
...
...
@@ -136,7 +137,8 @@
configuration_mobile
:
options
.
configuration_mobile
||
MOBILE_CONFIGURATION
,
is_responsive
:
(
options
.
configuration_mobile
!==
undefined
)
||
(
options
.
configuration
===
undefined
)
(
options
.
configuration
===
undefined
),
is_mobile
:
MATCH_MEDIA
.
matches
});
})
...
...
@@ -190,7 +192,7 @@
}
})
.
declare
Service
(
function
()
{
.
declare
Job
(
'
listenToResize
'
,
function
()
{
var
result
,
event
,
context
=
this
;
...
...
@@ -204,12 +206,8 @@
is_mobile
:
false
});
}
result
=
loopEventListener
(
window
,
'
resize
'
,
false
,
extractSizeAndDispatch
);
event
=
document
.
createEvent
(
"
Event
"
);
event
.
initEvent
(
'
resize
'
,
true
,
true
);
window
.
dispatchEvent
(
event
);
return
result
;
return
loopEventListener
(
window
,
'
resize
'
,
false
,
extractSizeAndDispatch
);
});
...
...
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