Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Logeshwaran
/
mynotes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
8
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
25c24732
authored
2018-09-18 17:32:33 +0530
by
logesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dev:chanages in mynotes
1 parent
4a7b071c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
amd/build/script.min.js
amd/src/script.js
block_mynotes.php
amd/build/script.min.js
0 → 100644
View file @
25c2473
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
amd/src/script.js
0 → 100644
View file @
25c2473
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
block_mynotes.php
View file @
25c2473
...
...
@@ -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'
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment