Fixed upload a photo directly to a Collection
This commit is contained in:
parent
2aa045949d
commit
489ea8a707
1 changed files with 12 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix" id="uploaderContainer">
|
<div class="clearfix" id="uploaderContainer">
|
||||||
{if $c}
|
{if $c}
|
||||||
<h4>{$c.collection_name}</h4>
|
<div class="alert alert-info" role="alert">Photo will be uploaded into <strong><i>{$c.collection_name}</i></strong> Collection</div>
|
||||||
{else}
|
{else}
|
||||||
<h4 class="h4">Select Collection</h4>
|
<h4 class="h4">Select Collection</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -298,8 +298,18 @@
|
||||||
Insert the video in the database and get the video db id from the
|
Insert the video in the database and get the video db id from the
|
||||||
database which will be sent with the final form
|
database which will be sent with the final form
|
||||||
*/
|
*/
|
||||||
|
var collectionId;
|
||||||
|
var collection_id = '{$c.collection_id}';
|
||||||
|
if (collection_id )
|
||||||
|
{
|
||||||
|
collectionId = collection_id;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
collectionId = $("#SelectionDIV select").val();
|
||||||
|
}
|
||||||
var fileId = false;
|
var fileId = false;
|
||||||
var collectionId = $("#SelectionDIV select").val();
|
|
||||||
var stored_cid = collectionId;
|
var stored_cid = collectionId;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : baseurl + "/actions/photo_uploader.php",
|
url : baseurl + "/actions/photo_uploader.php",
|
||||||
|
|
Loading…
Add table
Reference in a new issue