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
bbb7b480
authored
2018-11-15 11:59:02 +0530
by
logesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dev:changes in notes dialogue box position
1 parent
5009e9fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
amd/build/mynotesblock.js
styles.css
amd/build/mynotesblock.js
View file @
bbb7b48
...
...
@@ -465,7 +465,6 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
registerActions
:
function
()
{
var
scope
=
this
;
$
(
'body'
).
delegate
(
'#addmynote_cancel'
,
'click'
,
function
()
{
panel
.
hide
()
...
...
@@ -474,18 +473,22 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
scope
.
saveMynotes
(
e
)
});
$
(
'body'
).
delegate
(
'#id_mynotecontent-258'
,
'click'
,
function
(
e
){
//temporarily paused function
/*$('body').delegate('#id_mynotecontent-258','click',function(e){
$('#id_mynotecontent-258').keypress(function(event) {
console.log(event.keyCode);
if (event.keyCode === 10) {
var cellField = document.getElementById("id_mynotecontent-258");
cellField.value= cellField.value +"\n";
}
if (event.keyCode == 13) {
console
.
log
(
'start to write'
);
scope.saveMynotes(e)
}
});
});
});
*/
$
(
'body'
).
delegate
(
SELECTORS
.
MYNOTES_BASE
+
' ul.tabs-menu li'
,
'click'
,
function
(
e
)
{
$
(
this
).
addClass
(
"current"
);
...
...
@@ -702,6 +705,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
var
scope
=
mynotes
;
if
(
panel
===
null
)
{
str
.
get_strings
([{
key
:
'mynotes'
,
...
...
@@ -740,9 +744,10 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
// el.find('.tabs-menu').append(tabsmenu);
el
.
find
(
'.tab'
).
append
(
$
(
tabcontents
));
Y
.
use
(
'moodle-core-notification-dialogue'
,
function
()
{
panel
=
new
M
.
core
.
dialogue
({
width
:
'300px'
,
draggable
:
tru
e
,
draggable
:
fals
e
,
modal
:
true
,
closeButton
:
true
,
headerContent
:
M
.
util
.
get_string
(
'mynotes'
,
'block_mynotes'
),
...
...
styles.css
View file @
bbb7b48
...
...
@@ -56,12 +56,17 @@ ul#mynotes_user-list{
padding-left
:
0rem
!important
;
}
/* Overridden style for positioning the notes box */
/* .moodle-dialogue-content
{
.mynotes-dialogue
{
position
:
fixed
!important
;
left
:
1035px
!important
;
width
:
300px
!important
;
top
:
70px
!important
;
} */
}
.mynotes_modal
{
height
:
0%
!important
;
height
:
unset
!important
;
}
:focus
{
outline
:
-webkit-focus-ring-color
auto
0px
!important
;
}
...
...
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