Merge pull request #748 from singlebrook/upload_instructions
Add some instructions to upload dialog
This commit is contained in:
@@ -102,6 +102,10 @@
|
|||||||
html += '<input type=file name="' + name + '">';
|
html += '<input type=file name="' + name + '">';
|
||||||
html += '</form>';
|
html += '</form>';
|
||||||
|
|
||||||
|
if( fieldAttributes.context ){
|
||||||
|
html += '<span class="context">' + fieldAttributes.context + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,8 @@ $(document).ready(function() {
|
|||||||
title: 'Upload File',
|
title: 'Upload File',
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
type: 'file'
|
type: 'file',
|
||||||
|
context: 'Your uploaded file will be accessible at /uploads/[filename]'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
OK: function( res ) {
|
OK: function( res ) {
|
||||||
@@ -171,7 +172,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
var path = pagePath();
|
var path = pagePath();
|
||||||
var oldName = pageName();
|
var oldName = pageName();
|
||||||
var context_blurb =
|
var context_blurb =
|
||||||
"Renamed page will be under " +
|
"Renamed page will be under " +
|
||||||
"<span class='path'>" + htmlEscape('/' + path) + "</span>" +
|
"<span class='path'>" + htmlEscape('/' + path) + "</span>" +
|
||||||
" unless an absolute path is given."
|
" unless an absolute path is given."
|
||||||
@@ -225,7 +226,7 @@ $(document).ready(function() {
|
|||||||
// For consistency remove the trailing /
|
// For consistency remove the trailing /
|
||||||
path = path.replace(/\/$/,'')
|
path = path.replace(/\/$/,'')
|
||||||
}
|
}
|
||||||
var context_blurb =
|
var context_blurb =
|
||||||
"Page will be created under " +
|
"Page will be created under " +
|
||||||
"<span class='path'>" + htmlEscape('/' + path) + "</span>" +
|
"<span class='path'>" + htmlEscape('/' + path) + "</span>" +
|
||||||
" unless an absolute path is given."
|
" unless an absolute path is given."
|
||||||
|
|||||||
Reference in New Issue
Block a user