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

adding instruction on how to use blocks that depends on whether javascript is enabled

parent 6485b93f
......@@ -58,6 +58,8 @@ function ViewManager() {
// Make the block types draggable
self.makeBlockTypesDraggable();
// Change the intruction to be for ajax
self.ajaxInstructions();
// Make the top pane a dropzone for cancelling adding block types
if (!self.isIE6) {
......@@ -634,6 +636,14 @@ function ViewManager() {
});
}
/**
* changes the intructions so they are for ajax
*/
this.ajaxInstructions = function() {
$('blocksinstruction').innerHTML = get_string('blocksinstructionajax');
}
/**
* Place hotzones over the blockinstances on the page, so that we can work
* out where to drop the blockinstance.
......
......@@ -177,6 +177,9 @@ $string['err.removecolumn'] = 'Failed to delete column';
$string['confirmdeleteblockinstance'] = 'Are you sure you wish to delete this block?';
$string['blockinstanceconfiguredsuccessfully'] = 'Block configured successfully';
$string['blocksintructionnoajax'] = 'Select a block and choose where to add it to your view. You can position a block using the arrow buttons in its titlebar';
$string['blocksinstructionajax'] = 'Drag blocks here to add them to your view. You can drag blocks around your view to position them.';
$string['addnewblockhere'] = 'Add new block here';
$string['add'] = 'Add';
$string['addcolumn'] = 'Add Column';
......
......@@ -26,6 +26,9 @@
<div id="bottom-pane">
<div id="column-container">
<div id="blocksinstruction" class="center">
{str tag='blocksintructionnoajax' section='view'}
</div>
{$columns}
<div class="cb">
</div>
......
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