diff options
| author | Bhavita Bhatt <bbh@odoo.com> | 2019-12-16 10:42:04 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-02-11 15:30:00 +0000 |
| commit | 4e162a4e7559491af651ab8da197fb16a5212bb0 (patch) | |
| tree | d53b2bf1d99f1d596c567e5be1d25903fb718605 /addons/website/static/src/js | |
| parent | de1743ab126309d6c2b6a189305ce6a3e1e1fd18 (diff) | |
[IMP] website, website_link: improve frontend config screens
Following things are done in this commit:
1. changed some labeling and string for more readable and helpful to the user
2. added extra width to the text box
3. added publish/unpublish option for mobile view.
4. track page option auto-activated for any new page,event,job offer,course,
blog.
task-2088546
closes #40085
Co-authored-by: jpr-odoo <jpr@openerp.com>
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/menu/new_content.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/website/static/src/js/menu/new_content.js b/addons/website/static/src/js/menu/new_content.js index 50d46e81221..918a840561d 100644 --- a/addons/website/static/src/js/menu/new_content.js +++ b/addons/website/static/src/js/menu/new_content.js @@ -267,7 +267,10 @@ var NewContentMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ }).last(); if ($finalPosition) { $el.fadeTo(400, 0, function () { - $el.insertAfter($finalPosition); + // if once installed, button disapeear, don't need to move it. + if (!$el.hasClass('o_new_content_element_once')) { + $el.insertAfter($finalPosition); + } // change style to use spinner $i.removeClass() .addClass('fa fa-spin fa-spinner fa-pulse'); @@ -278,7 +281,9 @@ var NewContentMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({ } self._install(moduleId).then(function () { - window.location.href = window.location.origin + window.location.pathname + '?' + enableFlag; + var origin = window.location.origin; + var redirectURL = $el.find('a').data('url') || (window.location.pathname + '?' + enableFlag); + window.location.href = origin + redirectURL; }, function () { $i.removeClass() .addClass('fa fa-exclamation-triangle'); |
