Commit Graph
1693 Commits
Author SHA1 Message Date
Jeremy Kersten fe3e91d1ff [FIX] website: fix footer
Inconsistency between col-md and col-lg (offset)
Add auto word wrap to avoid that text override next column
2015-09-25 16:38:09 +02:00
Jeremy Kersten d8f5b28554 [FIX] website: translation - don't crash if translation is empty
Avoid 'Uncaught TypeError: t.value.trim is not a function'
When t.value is empty / false, trim crash and so it's impossible
for end user to make translation.
2015-09-25 15:14:50 +02:00
Christophe Matthieu 1c460e3ca8 [FIX] website: can add block in translate mode.
Fix for saas-6 only, don't forward port.

If the user translate a record html field like product... and add block after in English version, the translation doesn't have the new blocks.
In version >= 9.0 the translations contain only textual contents (with font, bold, color...). If a user add a block in english the block appear in all translations (with new text marked to translate).
2015-09-23 16:16:52 +02:00
Denis Ledoux a3648fd23a [MERGE] forward port of branch 8.0 up to aabbdc7 2015-09-21 16:01:58 +02:00
Nicolas Lempereur 3c39b62bce [FIX] website: escaping and external iframe
jQuery has a special behaviour when using .contents() over an iframe
object. This caused an error for escaping when saving the page with an
iframe content of an external domain.

introduced by 8c77c711
opw-649570
2015-09-18 09:41:32 +02:00
Jeremy Kersten ac8e28405d [FIX] website: website.theme.js make it re-usable and more flexible
Each theme was duplicating this file.
Now we need to improve this file to be re-usable by others themes.

This fix is only to catch input, in case of the selector is an image.
2015-09-14 16:30:39 +02:00
Nicolas Lempereur e03d64cfaa [FIX] website: remove cancelled request for mobile preview
In 7d40a7d, f820c07, 3ed0628 the way the mobile preview iframe is set
was altered several times. This left an inconsistent needless page load.

This page load was cancelled, but as a side effect in a given set of
conditions:

- an ajax request is done early in current (and so iframe) page,
- phantomjs is used for the test,
- server response time

this could lead to a false positive caused by a cancelled xhr request
throwing the error: "Can't load template, http status 0".
2015-09-14 10:13:25 +02:00
Jeremy Kersten 8f97374842 [FIX] website: fix translation - missing escaping 2015-09-07 18:07:34 +02:00
Christophe Simonis 3bb0cb2a50 [MERGE] forward port of branch 8.0 up to 9c8b99a 2015-09-04 18:30:48 +02:00
Nicolas Lempereur 6672e45ba4 [FIX] website: better text node if delete and whitespace
If the node is a text node containing only empty space, we must replace
some of these space by an   so it can be selected.
2015-09-04 11:35:11 +02:00
Jeremy Kersten 443447a2b1 [FIX] website: set oe_manipulators at top of top-bar
Without this, oe_manipulator could be under the bar and so impossible to move, duplicate, delete, ... the snippet
2015-09-03 13:18:52 +02:00
Nicolas Lempereur ea07b7dc2b [FIX] website: don't escape if embedded html field
We should escape arch ir.ui.view arch content, but we should not escape
embedded html field content.
2015-09-02 18:36:19 +02:00
Christophe Simonis ea5520967e [FIX] website: handle "DELETE" correctly on mac 2015-08-31 18:57:04 +02:00
Christophe Simonis f22f6954eb [FIX] website: summernote: do not use magic variable "event" 2015-08-31 18:54:55 +02:00
Jeremy Kersten b86d98de24 [IMP] website: imp snippet bar
Force fa size to 14px, to avoid that themes which change body size,
change the fa snippet icon size and display it on severals lines.

Add text 'Snippets are loading' while snippets template is downloading.
2015-08-29 12:16:48 +02:00
Christophe Simonis 6d85a9a4b9 [MERGE] forward port of branch 8.0 up to d744923 2015-08-27 18:30:46 +02:00
Christophe Matthieu 46de6789c6 [FIX] website: computeFonts when mediaEditor is called 2015-08-27 18:09:39 +02:00
Christophe Matthieu 877f38e2be [FIX] website: history buttons "undo", "redo" for embedded editor
* use summernote base history when not editing the website,
* fix the history buttons "undo", "redo" for embedded editor,
2015-08-27 18:09:39 +02:00
Christophe Matthieu a1194b2bb8 [FIX] website: use and improve ctrl-z/v in forum
* fix erroneous paste edge case,
* improve selection and pasting
* delete and backspace with hr

opw-646222
2015-08-27 18:09:39 +02:00
Nicolas Lempereur 8c77c711ee [FIX] website: escaping saved html content
Escape text nodes changed via the web editor before sending the content
it to the server controller.

It is done since the content is unescaped one time when being displayed,
and it is not done for inline style and script tags (which may be
injected by dropping a snippet) since that would break them.

replacing the solution in cdb900044.
2015-08-27 17:27:39 +02:00
Jeremy Kersten 11d09a427f [FIX] website: editor - don't try to load ico and video in only_images mode 2015-08-26 15:33:35 +02:00
Christophe Matthieu b44749f8d5 [IMP] website.theme: add event into the on_select arguments to allow the prevent default 2015-08-26 15:31:28 +02:00
Christophe Matthieu b90c663702 [FIX] website: two sliders or galleries can have the same id
(because the user can edit separate part like footer or using versioning)

Backport of 394a0c8bb4.
2015-08-25 17:14:55 +02:00
Christophe Simonis b2062df319 [MERGE] forward port of branch 8.0 up to 86f98d5 2015-08-21 17:01:17 +02:00
Christophe Matthieu ee0fd9765e [IMP] website: add on_select on Theme object
Called by click or changes with enable or disable.
Called only one time by selection.
Receive all changed inputs.
For e.g.: allow to the designer to use this method to open modal or other option.
2015-08-21 16:01:00 +02:00
Christophe Matthieu 86696c3d70 [FIX] website: can't add a slide in banner 2015-08-21 15:58:53 +02:00
Christophe Matthieu 394a0c8bb4 [FIX] website: two sliders or galleries can have the same id
(because the user can edit separate part like footer or using versioning)
2015-08-21 15:58:53 +02:00
Christophe Matthieu a38e5bee18 [FIX] website: zero index for snippet gallery 2015-08-21 15:58:53 +02:00
Nicolas Lempereur 57c00ebea5 [FIX] website: escape when in a modal don't close editor
When a bootstrap modal is closed via the escape key, the editor would
snatch this keydown event and think we want to stop the editing.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur ca9f0f283b [FIX] website: remove remnants of video autoplay
Video autoplay was removed in commit 9069d0 (december 2014) but there
was still two needless references.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 0ddb68be81 [FIX] website: manage css margin for resizing
In some case margin could be applied via CSS and not via mb* classes
(e.g several themes with different aspects but a shared snippet). This
commit allow this if custom CSS margin matches a CSS mb* class value
(currently 0, 4, 8, 16, 32, 48, 92 and 128).
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 681195a53e [FIX] website: edge case for slider background
Update the snippet option background "target" and cached
"background data" each time another slide is shown.
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 0934fcc9ad [FIX] website: improve font awesome icons
* don't duplicate fa classes needlessly,
* keep img-* classes which may be used on icons with a background,
* copy overlay when we transform a tag to a span
2015-08-21 15:58:52 +02:00
Nicolas Lempereur b35b21402e summernote: Fix script error when last undo.
from https://github.com/summernote/summernote/commit/715fec370
2015-08-21 15:58:52 +02:00
Nicolas Lempereur 43d378f2e8 summernote: add hasUndo and hasRedo method for pre/next buttons
Since the stack offset of the editing history is hidden, it was not
possible to have next (CTRL+Y) and previous (CTRL+Z) buttons.
2015-08-21 15:58:52 +02:00
Christophe Matthieu f52c046afe [FIX] website: snippet editor call on_clone & on_remove on children 2015-08-21 15:58:52 +02:00
Christophe Matthieu 0c1f6f7092 [FIX] website: double enter in blockquote & pre = new line outside 2015-08-21 15:58:52 +02:00
Christophe Matthieu dd4566de37 [FIX] website: remove col-md-12 obsolete bootstrap fix 2015-08-17 10:13:00 +02:00
Goffin Simon 60d1c69a88 [FIX] website: hide modal
When dropping the snippet "Newsletter Popup", a modal appeared to choose
the newsletter. Once the button "Continue" was clicked, the modal was not
hidden and then it was impossible to scroll.
2015-08-13 13:20:20 +02:00
Jeremy Kersten 7e948b2e47 [FIX] website: editor - allow to customize fa
Allow to add class img-circle, img-thumbnail, img-rounded, shadow on font awesome
Missing feature which one was present in v8 via customize
2015-08-13 10:05:18 +02:00
Christophe Simonis 171d001985 [MERGE] forward port of branch 8.0 up to 02954ba 2015-08-11 16:56:47 +02:00
Goffin Simon 71d51bb05f [FIX] website: background of the banner
";" is not always in the background style of the banner.

opw:647083
2015-08-11 15:28:39 +02:00
Jeremy Kersten c47ea6f8ea [FIX] website: editor - duplicate the slide from snippet
Since saas-6, all snippets should start by a s_, so we can know exactly what is
 the current snippet, and retrieve the slide from the drop-snippets bar.

If none snippet match, we use the old method which consists to find the snippet
which have the biggest intersection of class betwwen dropped snippet, and all
snippets in drop-snippets bar.

A other way without update the JS code will be to had many fake class in the
snippet declaration and in the snippet code to be sure that it match the right
snippet.
2015-08-11 13:58:04 +02:00
Goffin Simon a1328c9054 [FIX] website: escaped hash and url
To be valid for the redirection, the url and the hash
must be percent encoded.

opw:646837
2015-08-10 16:18:16 +02:00
Jeremy Kersten 1478a5958d [FIX] website: fix color switcher
Typo nodes vs node
Allow to switch color from text after that user click on img and come back
 on text field
2015-08-06 17:21:29 +02:00
Nicolas Lempereur e7e9eb987b [FIX] website: copy paste from website
Pasting from the website to the website could for example copy
t-field="..." which then would easily add an error if e.g a field
is copied to an area where it is not available.

This fix strip the data-oe-... attributes of nodes added to the DOM
when pasting.

closes #7653
opw-644968
2015-07-31 13:17:11 +02:00
Jeremy Kersten fea605a98c [FIX] website: fix editor 2015-07-17 17:24:38 +02:00
Christophe Matthieu 9687a579f4 [FIX] website: media editor don't manage the font awsome alias 2015-07-17 12:13:07 +02:00
Christophe Matthieu f52c6bfaeb [FIX] website: editor: when create a link, the saved range is obsolete, and when the user click on an other option the range selection fail 2015-07-16 20:59:40 +02:00
Christophe Matthieu a74601d901 [FIX] website: wrong undo step if insert a table 2015-07-16 20:59:26 +02:00