Skip to content

Commit

Permalink
Merge branch 'MDL-31641_drag_drop_help_24' of git://github.com/davosm…
Browse files Browse the repository at this point in the history
…ith/moodle into MOODLE_24_STABLE
  • Loading branch information
danpoltawski committed Jan 8, 2013
2 parents 05f8741 + 2e8da70 commit ef42830
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/renderer.php
Expand Up @@ -188,15 +188,15 @@ private function fm_print_generallayout($fm) {
$strdroptoupload = get_string('droptoupload', 'moodle'); $strdroptoupload = get_string('droptoupload', 'moodle');
$icon_progress = $OUTPUT->pix_icon('i/loading_small', $strloading).''; $icon_progress = $OUTPUT->pix_icon('i/loading_small', $strloading).'';
$restrictions = $this->fm_print_restrictions($fm); $restrictions = $this->fm_print_restrictions($fm);
$strdndenabled = get_string('dndenabled_insentence', 'moodle').$OUTPUT->help_icon('dndenabled'); $strdndnotsupported = get_string('dndnotsupported_insentence', 'moodle').$OUTPUT->help_icon('dndnotsupported');
$strdndenabledinbox = get_string('dndenabled_inbox', 'moodle'); $strdndenabledinbox = get_string('dndenabled_inbox', 'moodle');
$loading = get_string('loading', 'repository'); $loading = get_string('loading', 'repository');


$html = ' $html = '
<div id="filemanager-'.$client_id.'" class="filemanager fm-loading"> <div id="filemanager-'.$client_id.'" class="filemanager fm-loading">
<div class="fp-restrictions"> <div class="fp-restrictions">
'.$restrictions.' '.$restrictions.'
<span class="dndupload-message"> - '.$strdndenabled.' </span> <span class="dnduploadnotsupported-message"> - '.$strdndnotsupported.' </span>
</div> </div>
<div class="fp-navbar"> <div class="fp-navbar">
<div class="filemanager-toolbar"> <div class="filemanager-toolbar">
Expand Down
3 changes: 3 additions & 0 deletions lang/en/moodle.php
Expand Up @@ -472,6 +472,9 @@
$string['dndenabled_help'] = 'You can drag one or more files from your desktop and drop them onto the box below to upload them.<br />Note: this may not work with other web browsers'; $string['dndenabled_help'] = 'You can drag one or more files from your desktop and drop them onto the box below to upload them.<br />Note: this may not work with other web browsers';
$string['dndenabled_insentence'] = 'drag and drop available'; $string['dndenabled_insentence'] = 'drag and drop available';
$string['dndenabled_inbox'] = 'You can drag and drop files here to add them.'; $string['dndenabled_inbox'] = 'You can drag and drop files here to add them.';
$string['dndnotsupported'] = 'Drag and drop upload not supported';
$string['dndnotsupported_help'] = 'Your browser does not support drag and drop upload.<br />This feature is available in all recent versions of Chrome, Firefox and Safari, as well as Internet Explorer v10 and above.';
$string['dndnotsupported_insentence'] = 'drag and drop not supported';
$string['dnduploadwithoutcontent'] = 'This upload does not have any content'; $string['dnduploadwithoutcontent'] = 'This upload does not have any content';
$string['dndworkingfiletextlink'] = 'Drag and drop files, text or links onto course sections to upload them'; $string['dndworkingfiletextlink'] = 'Drag and drop files, text or links onto course sections to upload them';
$string['dndworkingfilelink'] = 'Drag and drop files or links onto course sections to upload them'; $string['dndworkingfilelink'] = 'Drag and drop files or links onto course sections to upload them';
Expand Down
2 changes: 2 additions & 0 deletions theme/base/style/filemanager.css
Expand Up @@ -341,6 +341,8 @@ a.ygtvspacer:hover {color: transparent;text-decoration: none;}
.filemanager-container.dndupload-over .dndupload-target {background:#FFFFFF;position:absolute;top:10px;bottom:10px;left:10px;right:10px;border: 2px dashed #6c8cd3;padding-top:85px;text-align:center;z-index: 3000;} .filemanager-container.dndupload-over .dndupload-target {background:#FFFFFF;position:absolute;top:10px;bottom:10px;left:10px;right:10px;border: 2px dashed #6c8cd3;padding-top:85px;text-align:center;z-index: 3000;}
.dndupload-message {display:none;} .dndupload-message {display:none;}
.dndsupported .dndupload-message {display:inline;} .dndsupported .dndupload-message {display:inline;}
.dnduploadnotsupported-message {display:none;}
.dndnotsupported .dnduploadnotsupported-message {display:inline;}
.dndupload-target {display:none;} .dndupload-target {display:none;}
.dndsupported .dndupload-ready .dndupload-target {display:block;} .dndsupported .dndupload-ready .dndupload-target {display:block;}
.dndupload-uploadinprogress {display:none;text-align:center;} .dndupload-uploadinprogress {display:none;text-align:center;}
Expand Down

0 comments on commit ef42830

Please sign in to comment.