2015-01-04 52 views
0

我想使模塊窗口中的plupload工作,由ng-dialog生成。代碼是:Plupload不能與ng對話框一起工作

$scope.showManager = function(){ 
    ngDialog.open({ 
    template: '/template/fmanager.html', 
    controller: 'FileManagerController' 
    }); 
} 

app.controller('FileManagerController', function($scope){ 
    $scope.plupload = new plupload.Uploader({ 
     browse_button: 'browseFileButton', 
     url: '/upload/path', 
     init: { 
      FilesAdded: function(uploader, files) { 
       uploader.start(); 
      } 
     } 
    }); 

    $scope.plupload.init(); 
}); 

瀏覽按鈕不起作用。我試圖創建init函數,但沒有成功。

$scope.init = function(){ 
    $scope.plupload.settings.browse_button = 'browseFileButton'; 
    $scope.plupload.refresh(); 
    $scope.plupload.init(); 
} 

請任何建議。

回答

相關問題