diff --git a/lib/assets/javascripts/cartodb/new_common/views/base_dialog/view.js b/lib/assets/javascripts/cartodb/new_common/views/base_dialog/view.js
index 9d16624ef9..9e2a0949a3 100644
--- a/lib/assets/javascripts/cartodb/new_common/views/base_dialog/view.js
+++ b/lib/assets/javascripts/cartodb/new_common/views/base_dialog/view.js
@@ -1,5 +1,7 @@
var cdb = require('cartodb.js');
+var BaseDialog = cdb.ui.common.Dialog;
+
/**
* Abstract view for a dialog, a kind of view that takes up the full screen overlaying any previous content.
*
@@ -20,7 +22,7 @@ var cdb = require('cartodb.js');
* // To render & show initially (only to be called once):
* dialog.appendToBody();
*/
-module.exports = cdb.ui.common.Dialog.extend({
+module.exports = BaseDialog.extend({
className: 'Dialog',
overrideDefaults: {
@@ -46,7 +48,7 @@ module.exports = cdb.ui.common.Dialog.extend({
// The timeout should match the .Dialog--closing animation duration.
var self = this;
setTimeout(function() {
- cdb.ui.common.Dialog.prototype._cancel.apply(self, arguments);
+ BaseDialog.prototype._cancel.apply(self, arguments);
}, 80); //ms
}
});
diff --git a/lib/assets/javascripts/cartodb/new_dashboard/content_controller_view.js b/lib/assets/javascripts/cartodb/new_dashboard/content_controller_view.js
index a07b686461..78c053d80f 100644
--- a/lib/assets/javascripts/cartodb/new_dashboard/content_controller_view.js
+++ b/lib/assets/javascripts/cartodb/new_dashboard/content_controller_view.js
@@ -137,7 +137,11 @@ module.exports = cdb.core.View.extend({
this._scrollToTop();
},
- _onDataFetched: function(coll, opts) {
+ /**
+ * Arguments may vary, depending on if it's the collection or a model that triggers the event callback.
+ * @private
+ */
+ _onDataFetched: function() {
var activeViews = [ 'filters', 'content_footer' ];
var tag = this.router.model.get('tag');
var q = this.router.model.get('q');
@@ -146,7 +150,7 @@ module.exports = cdb.core.View.extend({
var locked = this.router.model.get('locked');
var library = this.router.model.get('library');
- if (coll.size() === 0) {
+ if (this.collection.size() === 0) {
if (!tag && !q && !shared && !locked && !liked) {
if (this.router.model.get('content_type') === "maps") {
diff --git a/lib/assets/javascripts/cartodb/new_dashboard/dialogs/delete_items/template.jst.ejs b/lib/assets/javascripts/cartodb/new_dashboard/dialogs/delete_items/template.jst.ejs
index b728569415..270c12d6ff 100644
--- a/lib/assets/javascripts/cartodb/new_dashboard/dialogs/delete_items/template.jst.ejs
+++ b/lib/assets/javascripts/cartodb/new_dashboard/dialogs/delete_items/template.jst.ejs
@@ -14,7 +14,7 @@
-