-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[shopsys] move ready category seo mix from project-base to packages (…
…#3494)
- Loading branch information
Showing
68 changed files
with
3,724 additions
and
240 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
assets/js/admin/components/CategoryWithSeoMixDeleteConfirm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Register from '../../common/utils/Register'; | ||
import Window from '../utils/Window'; | ||
import Translator from 'bazinga-translator'; | ||
|
||
export default class CategoryWithSeoMixDeleteConfirm { | ||
static init ($container) { | ||
$container.filterAllNodes('.js-category-with-seomix-delete-confirm').click((event) => { | ||
// eslint-disable-next-line no-new | ||
new Window({ | ||
content: Translator.trans('Do you really want to remove this category even with their SEO mixes?'), | ||
buttonCancel: true, | ||
buttonContinue: true, | ||
textContinue: Translator.trans('Delete category with SEO mix'), | ||
urlContinue: $(event.currentTarget).data('delete-url') | ||
}); | ||
}); | ||
} | ||
} | ||
|
||
(new Register()).registerCallback(CategoryWithSeoMixDeleteConfirm.init, 'CategoryWithSeoMixDeleteConfirm.init'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.