2013-08-20 97 views
2

我正嘗試在移動網站版本中使用指向iframe的「容器」屬性,但在此情況下,inkfilepicker會在臺式機和移動設備上發送桌面內容。在屬性「容器」被刪除後,我得到一個包含移動內容的新標籤。請指教。Inkfilepicker:在iframe中顯示移動版本的問題

selectFilepickerService: function(service){ 
    var maxFilesize = $('#ufilepickContent form[name="filepickerConf"] input[name="max_file_size"]').val(); 
    this.lastService = service; 
    filepicker.pick({ 
     mimetypes: ['image/*'], 
     container: 'ufilepickService', 
     maxSize : maxFilesize, 
     services : service 
    }, $.proxy(function(fpfile){ 
     this.saveImage(fpfile.url, fpfile.filename); 
    }, this)); 
}, 

回答

3

您可以傳遞參數,通過使用移動迫使移動方式:真實的,例如

filepicker.pick({ 
    mimetypes: ['image/*'], 
    container: 'ufilepickService', 
    mobile: true, 
    maxSize : maxFilesize, 
    services : service 
}, $.proxy(function(fpfile){ 
    this.saveImage(fpfile.url, fpfile.filename); 
}, this)); 
+1

謝謝!有效!在文檔中提到這件事情會很棒。 – Alexander

+0

我也建議將其添加到文檔中 – kitdesai