Add Ability to the app to detect more details on the file

This commit is contained in:
VicDeo 2013-02-18 13:22:43 +03:00
parent 3b9796bfcc
commit fde0a8b520
1 changed files with 4 additions and 3 deletions

View File

@ -162,9 +162,10 @@ $(document).ready(function() {
var tr=$('tr').filterAttr('data-file',filename); var tr=$('tr').filterAttr('data-file',filename);
var renaming=tr.data('renaming'); var renaming=tr.data('renaming');
if(!renaming && !FileList.isLoading(filename)){ if(!renaming && !FileList.isLoading(filename)){
var mime=$(this).parent().parent().data('mime'); FileActions.currentFile = $(this).parent();
var type=$(this).parent().parent().data('type'); var mime=FileActions.getCurrentMimeType();
var permissions = $(this).parent().parent().data('permissions'); var type=FileActions.getCurrentType();
var permissions = FileActions.getCurrentPermissions();
var action=FileActions.getDefault(mime,type, permissions); var action=FileActions.getDefault(mime,type, permissions);
if(action){ if(action){
event.preventDefault(); event.preventDefault();