Commit ad8c040c authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

removed unhelpful help from file

parent db6ef0d6
......@@ -68,10 +68,8 @@ function FileBrowser(element, source, statevars, changedircallback, actionname,
}
var editb = INPUT({'type':'button', 'class':'button', 'value':get_string('edit')});
editb.onclick = function () { self.openeditform(r); };
var edith = SPAN(null);
edith.innerHTML = get_string('edit.help');
if (r.childcount > 0) {
return TD(null, editb, edith);
return TD(null, editb);
}
var deleteb = INPUT({'type':'button', 'class':'button', 'value':get_string('delete')});
deleteb.onclick = function () {
......@@ -82,9 +80,7 @@ function FileBrowser(element, source, statevars, changedircallback, actionname,
}
}
};
var deleteh = SPAN(null);
deleteh.innerHTML = get_string('delete.help');
return TD(null, editb, edith, deleteb, deleteh);
return TD(null, editb, deleteb);
}
}
......@@ -97,9 +93,7 @@ function FileBrowser(element, source, statevars, changedircallback, actionname,
hideElement(self.createfolderbutton);
showElement(self.createfolderform);
}});
var help = SPAN(null);
help.innerHTML = get_string('createfolder.help');
self.createfolderbutton = SPAN(null, button, help);
self.createfolderbutton = SPAN(null, button);
self.createfolderform = self.initcreatefolderform();
insertSiblingNodesBefore(self.element, self.createfolderbutton, self.createfolderform);
}
......@@ -312,9 +306,6 @@ function FileBrowser(element, source, statevars, changedircallback, actionname,
cancelcreateform();
}
}});
var namehelp = SPAN(null); namehelp.innerHTML = get_string('name.help');
var deschelp = SPAN(null); deschelp.innerHTML = get_string('folderdescription.help');
var cancelhelp = SPAN(null); cancelhelp.innerHTML = get_string('cancelfolder.help');
return FORM({'method':'post', 'id':formid, 'style':'display: none;'},
TABLE(null,
TBODY(null,
......@@ -323,13 +314,13 @@ function FileBrowser(element, source, statevars, changedircallback, actionname,
TD(null, SPAN({'id':'createdest'},self.generatePath(self.currentDirectory)))),
TR(null,TH(null,LABEL(get_string('Name'))),
TD(null,INPUT({'type':'text','class':'text','name':'name','value':'',
'size':40}), namehelp)),
'size':40}))),
TR(null,TH(null,LABEL(get_string('Description'))),
TD(null,INPUT({'type':'text','class':'text','name':'description',
'value':'','size':40}), deschelp)),
'value':'','size':40}))),
TR(null, TH(null, LABEL(null, get_string('tags'))), TD({'colspan':'2'}, create_tags_control('tags'))),
TR(null,TD({'colspan':2},SPAN({'id':formid+'message'}))),
TR(null,TD({'colspan':2},createbutton,replacebutton,cancelbutton,cancelhelp)))));
TR(null,TD({'colspan':2},createbutton,replacebutton,cancelbutton)))));
};
this.showsize = function(bytes) {
......@@ -501,9 +492,7 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
showElement(self.form);
keepElementInViewport(self.form);
}});
var uploadhelp = SPAN({'id':'uploadfilehelp'});
uploadhelp.innerHTML = get_string('uploadfile.help');
self.openbutton = SPAN(null, button, uploadhelp);
self.openbutton = SPAN(null, button);
appendChildNodes(self.element, self.form, self.openbutton);
}
......@@ -527,9 +516,6 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
};
var notice = SPAN(null);
notice.innerHTML = copyrightnotice + get_string('notice.help');
var titlehelp = SPAN(null); titlehelp.innerHTML = get_string('title.help');
var deschelp = SPAN(null); deschelp.innerHTML = get_string('description.help');
var cancelhelp = SPAN(null); cancelhelp.innerHTML = get_string('cancel.help');
var destinationattributes = (self.folderid === false) ? {'style':'display: none;'} : null;
appendChildNodes(form,
TABLE(null,
......@@ -544,9 +530,9 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
self.form.title.value = basename(self.form.userfile.value);
}}))),
TR(null, TH(null, LABEL(null, get_string('Name'))),
TD(null, INPUT({'type':'text', 'class':'text', 'name':'title', 'size':40}), titlehelp)),
TD(null, INPUT({'type':'text', 'class':'text', 'name':'title', 'size':40}))),
TR(null, TH(null, LABEL(null, get_string('Description'))),
TD(null, INPUT({'type':'text', 'class':'text', 'name':'description', 'size':40}), deschelp)),
TD(null, INPUT({'type':'text', 'class':'text', 'name':'description', 'size':40}))),
TR(null, TH(null, LABEL(null, get_string('tags'))),
TD({'colspan': 2}, create_tags_control('tags'))),
TR(null,TD({'colspan':2, 'id':'uploadformmessage'})),
......@@ -558,7 +544,7 @@ function FileUploader(element, uploadscript, statevars, foldername, folderid, up
'value':get_string('overwrite'),
'onclick':function () { if (self.sendform(true)) { cancelform(); } }}),
INPUT({'type':'button','class':'button','value':get_string('cancel'),
'onclick':cancelform}), cancelhelp)))));
'onclick':cancelform}))))));
hideElement(form.replace);
......
<h3>My Files</h3>
<p>Your Files area is a repository for Folders and Files to use within your portfolio. Both Folders and Files are considered Artefacts and both may be added to a View.</p>
<p>You may create any number of Folders and Sub-Folders. To view which Sub-Folders and Files sit within a Folder, click on the Folder name . Click on a File name to open the document or image. Use the Home link to return to the top level folder directory.</p>
<p>If you upload a File that is of an identified image type, it will be flagged as such and additional display options will apply to it within a View.</p>
<p>Your Files area is a repository for Folders and Files to use within your portfolio.
<p>The number of Files you may upload into your Files area is dependant on your set file storage limit which is displayed in the Quota box on the right of the screen. </p>
<p>For security reasons your Site Administrator may restrict some file (MIME) types from being uploaded to the system. </p>
<p>You will find that some Folders are automatically created by the system such as &#8216;blogfiles&#8217;. This Folder includes Files that are uploaded via a Blog posting. Deleting a File here will remove it from your Blog posting.</p>
<p>For security reasons your Site Administrator may restrict some file types from being uploaded to the system. </p>
<p>You can use drag and drop to organise your files and folders.</p>
\ No newline at end of file
<h3>Cancel</h3>
<p>Use Cancel to abort the File upload process.</p>
<h3>Cancel</h3>
<p>Use Cancel to abort the Folder creation process.</p>
<h3>Create Folder</h3>
<p> Use theCreate Folder option to add new Folders and Sub-Folders to your file repository area. </p>
<h3>Delete</h3>
<p>Use the Delete option to remove Folders that are empty of Files or Sub-Folders or to delete individual Files.</p>
<h3>Description</h3>
<p>You may choose to give your uploaded File a Description for your reference.</p>
<h3>Edit</h3>
<p>Use the Edit option to change the Folder or File Name or Description.</p>
<h3>Description</h3>
<p>You may choose to give your uploaded File a Description for your reference. The Folder Description may be changed at any time using the Edit button.</p>
<h3>Name</h3>
<p>The name you wish to use to identify your Folder or Sub-Folder. This may be changed at any time using the Edit button.</p>
<h3>Name</h3>
<p>If you wish to use a title other than the file name you can assign a File a Name of your choice.</p>
<h3>Upload File</h3>
<p>Use the Upload File option to add an allowed file type to your repository. </p>
<p>If the File you attempt to upload is flagged as containing a virus it will not be accepted by the system. You will need to run your File through a recent anti-virus application before resubmitting. If your File continues to be virus flagged and rejected by the system for no reason that you can see, you can request the Site Administrator remove the virus flag from your File and approve it for upload.</p>
<p>If you repeatedly attempt to upload files that are flagged as containing virus content, the Site Administrator will be notified and your account may be suspended.</p>
<p>If you attempt to upload a File with the same name as a document or image already stored within your repository, you will be given the option of overwriting the existing file, renaming the new file or cancelling the file upload process.</p>
......@@ -144,17 +144,8 @@ class PluginArtefactFile extends PluginArtefact {
static $jshelp = array(
'file' => array(
'artefact.file' => array(
'cancelfolder',
'cancel',
'createfolder',
'delete',
'description',
'edit',
'folderdescription',
'name',
'notice',
'quota_message',
'title',
'uploadfile',
'tags',
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment