bbb7b480 by logesh

dev:changes in notes dialogue box position

1 parent 5009e9fb
...@@ -466,7 +466,6 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -466,7 +466,6 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
466 466
467 var scope = this; 467 var scope = this;
468 468
469
470 $('body').delegate('#addmynote_cancel', 'click', function() { 469 $('body').delegate('#addmynote_cancel', 'click', function() {
471 panel.hide() 470 panel.hide()
472 }); 471 });
...@@ -474,18 +473,22 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -474,18 +473,22 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
474 473
475 scope.saveMynotes(e) 474 scope.saveMynotes(e)
476 }); 475 });
476 //temporarily paused function
477 /*$('body').delegate('#id_mynotecontent-258','click',function(e){
477 478
478 $('body').delegate('#id_mynotecontent-258','click',function(e){
479 479
480 $('#id_mynotecontent-258').keypress(function(event) { 480 $('#id_mynotecontent-258').keypress(function(event) {
481 481 console.log(event.keyCode);
482 if (event.keyCode === 10) {
483 var cellField = document.getElementById("id_mynotecontent-258");
484 cellField.value= cellField.value +"\n";
485 }
482 if (event.keyCode == 13) { 486 if (event.keyCode == 13) {
483 console.log('start to write');
484 scope.saveMynotes(e) 487 scope.saveMynotes(e)
485 } 488 }
486 }); 489 });
487 490
488 }); 491 });*/
489 492
490 $('body').delegate(SELECTORS.MYNOTES_BASE + ' ul.tabs-menu li', 'click', function(e) { 493 $('body').delegate(SELECTORS.MYNOTES_BASE + ' ul.tabs-menu li', 'click', function(e) {
491 $(this).addClass("current"); 494 $(this).addClass("current");
...@@ -702,6 +705,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -702,6 +705,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
702 705
703 706
704 var scope = mynotes; 707 var scope = mynotes;
708
705 if (panel === null) { 709 if (panel === null) {
706 str.get_strings([{ 710 str.get_strings([{
707 key: 'mynotes', 711 key: 'mynotes',
...@@ -740,9 +744,10 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -740,9 +744,10 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
740 // el.find('.tabs-menu').append(tabsmenu); 744 // el.find('.tabs-menu').append(tabsmenu);
741 el.find('.tab').append($(tabcontents)); 745 el.find('.tab').append($(tabcontents));
742 Y.use('moodle-core-notification-dialogue', function() { 746 Y.use('moodle-core-notification-dialogue', function() {
747
743 panel = new M.core.dialogue({ 748 panel = new M.core.dialogue({
744 width: '300px', 749 width: '300px',
745 draggable: true, 750 draggable: false,
746 modal: true, 751 modal: true,
747 closeButton: true, 752 closeButton: true,
748 headerContent: M.util.get_string('mynotes', 'block_mynotes'), 753 headerContent: M.util.get_string('mynotes', 'block_mynotes'),
......
...@@ -56,12 +56,17 @@ ul#mynotes_user-list{ ...@@ -56,12 +56,17 @@ ul#mynotes_user-list{
56 padding-left: 0rem !important; 56 padding-left: 0rem !important;
57 } 57 }
58 /* Overridden style for positioning the notes box */ 58 /* Overridden style for positioning the notes box */
59 /* .moodle-dialogue-content{ 59 .mynotes-dialogue{
60 position: fixed !important; 60 position: fixed !important;
61 left: 1035px!important; 61 left: 1035px!important;
62 width: 300px !important; 62 width: 300px !important;
63 top: 70px !important; 63 top: 70px !important;
64 } */ 64 }
65
66 .mynotes_modal {
67 height: 0% !important;
68 height: unset !important;
69 }
65 :focus{ 70 :focus{
66 outline: -webkit-focus-ring-color auto 0px !important; 71 outline: -webkit-focus-ring-color auto 0px !important;
67 } 72 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!