bbb7b480 by logesh

dev:changes in notes dialogue box position

1 parent 5009e9fb
......@@ -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: true,
draggable: false,
modal: true,
closeButton: true,
headerContent: M.util.get_string('mynotes', 'block_mynotes'),
......
......@@ -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;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!