*/
_triggerDelete: function(articleId) {
var article = _articles.get(articleId);
+ if (!article) {
+ // The affected article might be hidden by the filter settings.
+ return;
+ }
if (article.isArticleEdit) {
window.location = this._options.redirectUrl;
*/
_triggerPublish: function(articleId) {
var article = _articles.get(articleId);
+ if (!article) {
+ // The affected article might be hidden by the filter settings.
+ return;
+ }
if (article.isArticleEdit) {
// unsupported
*/
_triggerRestore: function(articleId) {
var article = _articles.get(articleId);
+ if (!article) {
+ // The affected article might be hidden by the filter settings.
+ return;
+ }
elHide(article.buttons.delete);
elHide(article.buttons.restore);
*/
_triggerTrash: function(articleId) {
var article = _articles.get(articleId);
+ if (!article) {
+ // The affected article might be hidden by the filter settings.
+ return;
+ }
elShow(article.buttons.delete);
elShow(article.buttons.restore);
*/
_triggerUnpublish: function(articleId) {
var article = _articles.get(articleId);
+ if (!article) {
+ // The affected article might be hidden by the filter settings.
+ return;
+ }
if (article.isArticleEdit) {
// unsupported