25c24732 by logesh

dev:chanages in mynotes

1 parent 4a7b071c
define(["jquery"],function(n){return{init:function(){var i=n(location).attr("href");n("document").ready(function(){i.includes("/mod/hvp/view.php")&&console.log("this is inside hvp")})}}});
\ No newline at end of file
define(['jquery'], function($) {
return {
init: function() {
var url= $(location).attr('href');
$('document').ready(function(){
if(url.includes('/mod/hvp/view.php')){
console.log("this is inside hvp");
}
});
}
};
});
\ No newline at end of file
......@@ -121,6 +121,7 @@ class block_mynotes extends block_base {
),
);
// $PAGE->requires->string_for_js('charactersleft', 'block_mynotes');
$PAGE->requires->js_call_amd('block_mynotes/script', 'init');
$PAGE->requires->string_for_js('notmorethan', 'block_mynotes');
$PAGE->requires->string_for_js('mynotes', 'block_mynotes');
$PAGE->requires->string_for_js('showmynotes', 'block_mynotes');
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!