[Vtigercrm-developers] multi file uploader (Appu)

Adam Heinz amh at metricwise.net
Tue Jun 11 14:15:30 UTC 2013


QA sent me back a bug on this feature.  Ends up I hard-coded a crmid in one
of the js files.  Whoops!

Index: js/vtiger.fileupload.js
===================================================================
--- js/vtiger.fileupload.js	(revision 4056)
+++ js/vtiger.fileupload.js	(revision 4368)
@@ -21,5 +21,5 @@
         //xhrFields: {withCredentials: true},
     	paramName: 'filename',
-        url: 'index.php?module=Documents&action=DocumentsAjax&file=Upload&parentid=19359'
+        url: 'index.php?module=Documents&action=DocumentsAjax&file=Upload&parentid='+getObj('record').value
     });




On Wed, May 15, 2013 at 12:39 PM, Adam Heinz <amh at metricwise.net> wrote:

> I forgot to attach the database update script:
>
> <?php
> require_once('adodb/adodb-exceptions.inc.php');
> require_once('include/database/PearDatabase.php');
> require_once('include/utils/CommonUtils.php');
>
> global $adb;
>
> $tabid = getTabid('Documents');
> Vtiger_Link::addLink($tabid, 'HEADERSCRIPT', "DocumentsCommon.js",
> "modules/Documents/DocumentsCommon.js");
> Vtiger_Link::addLink($tabid, 'HEADERCSS', "bootstrap-image-gallery.css",
> "css/bootstrap-image-gallery.min.css");
> Vtiger_Link::addLink($tabid, 'HEADERCSS', "jquery.fileupload-ui.css",
> "css/jquery.fileupload-ui.css");
>
> $tabid = getTabid('Contacts');
> Vtiger_Link::deleteLink($tabid, 'DETAILVIEWBASIC', "Add Document");
> Vtiger_Link::addLink($tabid, 'DETAILVIEWBASIC', "Add Document",
> "javascript:DocumentsUploadDialog()");
>
>
>
> On Wed, May 15, 2013 at 12:24 PM, Adam Heinz <amh at metricwise.net> wrote:
>
>> Patch attached.  We're running jQuery 1.9.1 and jQueryUI 1.10.2, which
>> are not included.  This feature hasn't made it through QA yet, so if you
>> have any trouble, let me know and I'll be happy to take a look at it.
>>
>>
>> On Wed, May 15, 2013 at 10:55 AM, Adam Heinz <amh at metricwise.net> wrote:
>>
>>> I'll see about working up a 5.4 patch file for my jQuery-File-Upload
>>> integration ASAP; hopefully later today.
>>>
>>>
>>> On Wed, May 15, 2013 at 8:27 AM, Rietz, Artur <a.rietz at opensaas.pl>wrote:
>>>
>>>> Hello ,
>>>>
>>>> we are currently realising similiar project for vtiger 6, maybe we can
>>>> make it together using for example forge for that purpose?
>>>>
>>>> The problem is we need it done in about two weeks so we can work
>>>> together or we make it alone... However it is worth to make that kind of
>>>> module fully flexible...
>>>>
>>>> Regards,
>>>> Rietz Artur
>>>>
>>>> _______________________________________________
>>>> http://www.vtiger.com/
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130611/239fb895/attachment.html>


More information about the vtigercrm-developers mailing list