Merge remote-tracking branch 'sf/2.2.x' into cc-4585
This commit is contained in:
commit
e01a61208d
|
@ -321,7 +321,7 @@ class LibraryController extends Zend_Controller_Action
|
|||
|
||||
if (isset($file)) {
|
||||
try {
|
||||
$res = $file->delete(true);
|
||||
$res = $file->delete();
|
||||
} catch (FileNoPermissionException $e) {
|
||||
$message = $noPermissionMsg;
|
||||
} catch (Exception $e) {
|
||||
|
|
|
@ -335,7 +335,7 @@ SQL;
|
|||
* @param boolean $p_deleteFile
|
||||
*
|
||||
*/
|
||||
public function delete($deleteFromPlaylist=false)
|
||||
public function delete()
|
||||
{
|
||||
|
||||
$filepath = $this->getFilePath();
|
||||
|
@ -359,9 +359,6 @@ SQL;
|
|||
Application_Model_RabbitMq::SendMessageToMediaMonitor("file_delete", $data);
|
||||
}
|
||||
|
||||
if ($deleteFromPlaylist) {
|
||||
Application_Model_Playlist::DeleteFileFromAllPlaylists($this->getId());
|
||||
}
|
||||
// set file_exists falg to false
|
||||
$this->_file->setDbHidden(true);
|
||||
$this->_file->save();
|
||||
|
|
|
@ -369,6 +369,9 @@ var AIRTIME = (function(AIRTIME){
|
|||
$.each($("div .big_play"), function(index, value){
|
||||
if ($(value).attr('blockId') === undefined) {
|
||||
var mime = $(value).attr("data-mime-type");
|
||||
//If mime is undefined it is likely because the file was
|
||||
//deleted from the library. This case is handled in mod.onReady()
|
||||
if (mime !== undefined) {
|
||||
if (isAudioSupported(mime)) {
|
||||
$(value).bind("click", openAudioPreview);
|
||||
} else {
|
||||
|
@ -393,6 +396,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($(value).attr('blocktype') === 'dynamic') {
|
||||
$(value).attr("class", "big_play_disabled dark_class");
|
||||
|
|
Loading…
Reference in New Issue