Upload $QSIFEQ(type,advert,Ad Content,Content)
var element = $('usageProfileId'); if (element.length == 2) { element[1].selected = true; } if ((element.length == 1) || (element.length == 0)) { element.up('.formEntry').remove(); } else { $('upload_content_form').constraints.push({'field': 'usageProfileId', 'type': 'required'}); } if (CMUI_QUERYSTRING.get('type') != 'advert') { $('content_tagging').remove(); $('rollupcontent_tagging').remove(); $('rolldowncontent_tagging').remove(); } $('mediaPoolId').simulate('click');
Help
location.href = "edit_content_group.html?id=" + $F('mediaPoolId') + CMUI_AMP + "type=" + CMUI_QUERYSTRING.get('type');
if (!CMUI_QUERYSTRING.get('id')) { location.href = "list_content_groups.html"; } else { location.href = "edit_content_group.html?id=" + CMUI_QUERYSTRING.get('id') + CMUI_AMP + "type=" + CMUI_QUERYSTRING.get('type'); }
displayAJAXErrors("Saving data failed", json['errors']);
var cgid=$F('mediaPoolId'); new Ajax.LoggedInRequest("web/content/mediaPool/getRssDefaults?id=" + cgid, { onSuccess: function(response) { debug.Print('Adding fields for edit_metadata_form'); var target = $('pooldefmd'); var data = $H(); $A(response.responseJSON["metadata"]).each(function(item) { data.set(item['id'], item['fieldValue']); }); $('content_metadata').select("input[type=hidden]").each(function(item) { var itemid = item.identify(); if (itemid == '__id') { } else if (itemid.substr(itemid.length-3) == '_id') { var id = item.getValue(); var value = data.get(id); var fld = $(itemid.substr(0, itemid.length - 3) + '_value'); debug.Print("Default Metadata ID: " + id + " becomes: " + data.get(id)); if ((value == null) || (value == undefined)) { fld.setValue(""); if (!fld.hasClassName('noremove')) { hideField('#' + fld.identify()); } } else { fld.setValue(value); showField('#' + fld.identify()); } } }); } });
$('disp1').up('.formEntry').hide(); $('file').up('.formEntry').hide(); $('disp2').up('.formEntry').hide(); $('url').up('.formEntry').hide(); var dt = new Date(); var fdt = dt.getDate() + "/" + (dt.getMonth() + 1) + "/" + dt.getFullYear() + " @ " + dt.getHours() + ":" + dt.getMinutes(); if ($F('description') == '') { $('description').setValue(json['sourceName'] + ' uploaded by ' + window.CMUIprettyname + ' on ' + fdt); } debug.Print(json.toString()); if ($F('name') == '') { $('name').setValue(json['sourceName']); } $('fileId').setValue(json['fileName']); debug.Print("File " + json['sourceName'] + " uploaded"); if ($('autosave').checked) { buttonSubmit($('save')); }
Auto-Save after upload
(Complete form to enable)
if ($('save').hasClassName('disabled')) { $('autosave').checked = false; disableField('#autosave'); $('notice').show(); } else { enableField('#autosave'); $('notice').hide(); }
Account default
Register content
Acquire content