SAAS-1199 - stop user from dragging unimported podcast episodes
This commit is contained in:
parent
c5a5839eff
commit
5264bebe57
|
@ -1004,6 +1004,13 @@ div.blockOverlay {
|
||||||
table.dataTable tbody tr,
|
table.dataTable tbody tr,
|
||||||
table.dataTable span.DataTables_sort_icon {
|
table.dataTable span.DataTables_sort_icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.dataTable th.ui-state-default {
|
table.dataTable th.ui-state-default {
|
||||||
|
|
|
@ -426,16 +426,17 @@ var AIRTIME = (function (AIRTIME) {
|
||||||
// When using static source data, we instantiate an empty table
|
// When using static source data, we instantiate an empty table
|
||||||
// and pass this function the ID of the podcast we want to display.
|
// and pass this function the ID of the podcast we want to display.
|
||||||
if (id) this.config.podcastId = id;
|
if (id) this.config.podcastId = id;
|
||||||
var dt = this._datatable;
|
var self = this, dt = self._datatable;
|
||||||
dt.block({
|
dt.block({
|
||||||
message: "",
|
message: "",
|
||||||
theme: true,
|
theme: true,
|
||||||
applyPlatformOpacityRules: false
|
applyPlatformOpacityRules: false
|
||||||
});
|
});
|
||||||
$.get(endpoint + this.config.podcastId + '/episodes', function (json) {
|
$.get(endpoint + self.config.podcastId + '/episodes', function (json) {
|
||||||
dt.fnClearTable();
|
dt.fnClearTable();
|
||||||
|
self.clearSelection();
|
||||||
dt.fnAddData(JSON.parse(json));
|
dt.fnAddData(JSON.parse(json));
|
||||||
dt.fnDraw();
|
// dt.fnDraw();
|
||||||
}).done(function () {
|
}).done(function () {
|
||||||
dt.unblock();
|
dt.unblock();
|
||||||
});
|
});
|
||||||
|
@ -638,6 +639,7 @@ var AIRTIME = (function (AIRTIME) {
|
||||||
},
|
},
|
||||||
fnCreatedRow: function(nRow, aData, iDataIndex) {
|
fnCreatedRow: function(nRow, aData, iDataIndex) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
if (aData.file && Object.keys(aData.file).length > 0) {
|
||||||
$(nRow).draggable({
|
$(nRow).draggable({
|
||||||
helper: function () {
|
helper: function () {
|
||||||
var $row = $(this), data = self._datatable.fnGetData(nRow);
|
var $row = $(this), data = self._datatable.fnGetData(nRow);
|
||||||
|
@ -665,6 +667,7 @@ var AIRTIME = (function (AIRTIME) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (typeof PodcastEpisodeTable === 'undefined') {
|
if (typeof PodcastEpisodeTable === 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue