5009e9fb by logesh

dev:changes in dialogue box style

1 parent 06ce11f1
...@@ -149,11 +149,12 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -149,11 +149,12 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
149 var result=''; 149 var result='';
150 150
151 e.preventDefault(); 151 e.preventDefault();
152
152 var scope = this; 153 var scope = this;
153 if (scope.checkInputText() == false) { 154 if (scope.checkInputText() == false) {
154 return false; 155 return false;
155 } 156 }
156 157
157 var url= $(location).attr('href'); 158 var url= $(location).attr('href');
158 159
159 160
...@@ -470,8 +471,22 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -470,8 +471,22 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
470 panel.hide() 471 panel.hide()
471 }); 472 });
472 $('body').delegate('#addmynote_submit', 'click', function(e) { 473 $('body').delegate('#addmynote_submit', 'click', function(e) {
474
473 scope.saveMynotes(e) 475 scope.saveMynotes(e)
474 }); 476 });
477
478 $('body').delegate('#id_mynotecontent-258','click',function(e){
479
480 $('#id_mynotecontent-258').keypress(function(event) {
481
482 if (event.keyCode == 13) {
483 console.log('start to write');
484 scope.saveMynotes(e)
485 }
486 });
487
488 });
489
475 $('body').delegate(SELECTORS.MYNOTES_BASE + ' ul.tabs-menu li', 'click', function(e) { 490 $('body').delegate(SELECTORS.MYNOTES_BASE + ' ul.tabs-menu li', 'click', function(e) {
476 $(this).addClass("current"); 491 $(this).addClass("current");
477 $(this).siblings().removeClass("current"); 492 $(this).siblings().removeClass("current");
...@@ -708,9 +723,9 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -708,9 +723,9 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
708 component: 'block_mynotes' 723 component: 'block_mynotes'
709 }]).done(function(s) { 724 }]).done(function(s) {
710 725
711 var el = $('<div id="tet"></div>').append($('<div id="' + CSS.MYNOTES_BASE + '" class="' + CSS.MYNOTES_BASE + '"></div>').append('<div class="inputarea"><div id="addmynote-label-' + CONFIG.instanceid + '">' + s[1] + ' ' + '' + '</div>' + '<div class="textarea"><textarea id="id_mynotecontent-' + CONFIG.instanceid + '" name="mynotecontent" rows="3">' + s[5] + '</textarea></div>' + '<p class="mdl-align"><input type="submit" id="addmynote_submit"/></p>' + '</div>').append($('<ul class="tabs-menu"></ul>')).append($('<div class="tab"></div>'))); 726 var el = $('<div id="tet"></div>').append($('<div id="' + CSS.MYNOTES_BASE + '" class="' + CSS.MYNOTES_BASE + '"></div>').append('<div class="inputarea"><div id="addmynote-label-' + CONFIG.instanceid + '">' + s[1] + ' ' + '' + '</div>' + '<div class="textarea"><textarea id="id_mynotecontent-' + CONFIG.instanceid + '" name="mynotecontent" rows="3">' + s[5] + '</textarea></div>' + '<p class="mdl-align"><input type="submit" id="addmynote_submit"/></p>' + '</div>').append($('<div class="tab"></div>')));
712 el.find('#addmynote_submit').attr('value', s[2]); 727 el.find('#addmynote_submit').attr('value', s[2]);
713 el.find('#addmynote_cancel').attr('value', s[3]); 728 // el.find('#addmynote_cancel').attr('value', s[3]);
714 var tabsmenu = ''; 729 var tabsmenu = '';
715 var tabcontents = ''; 730 var tabcontents = '';
716 var i = ''; 731 var i = '';
...@@ -722,7 +737,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f ...@@ -722,7 +737,7 @@ define(['jquery', 'core/yui', 'core/str', 'core/config', 'core/notification'], f
722 } 737 }
723 tabcontents += '<div class="tab-content" id="' + CONFIG.prefix + i + '" onpage="0" notes-count="0">' + '<div class="notes-info"><div class="mynotes-paging"></div><div class="count"></div></div>' + '<ul id="' + CONFIG.prefix + i + '-list" class="mynotes_lists"></ul>' + '</div>'; 738 tabcontents += '<div class="tab-content" id="' + CONFIG.prefix + i + '" onpage="0" notes-count="0">' + '<div class="notes-info"><div class="mynotes-paging"></div><div class="count"></div></div>' + '<ul id="' + CONFIG.prefix + i + '-list" class="mynotes_lists"></ul>' + '</div>';
724 } 739 }
725 el.find('.tabs-menu').append(tabsmenu); 740 // el.find('.tabs-menu').append(tabsmenu);
726 el.find('.tab').append($(tabcontents)); 741 el.find('.tab').append($(tabcontents));
727 Y.use('moodle-core-notification-dialogue', function() { 742 Y.use('moodle-core-notification-dialogue', function() {
728 panel = new M.core.dialogue({ 743 panel = new M.core.dialogue({
......
1 #mynotes-opener { position: absolute; bottom:0px; background: #443355; width: 25px; height: 25px; } 1 #mynotes-opener { position: absolute; bottom:0px; background: #443355; width: 25px; height: 25px; }
2 div.mdl-align { min-height: 470px;} 2 /* div.mdl-align { min-height: 470px;} */
3 #mynote-edit{display:none;position: absolute;right: 0; margin: 0 28px;} 3 #mynote-edit{display:none;position: absolute;right: 0; margin: 0 28px;}
4 #mynote-update{visibility: hidden;position: absolute !important; right: 0 !important; margin:0px 40px !important;} 4 #mynote-update{visibility: hidden;position: absolute !important; right: 0 !important; margin:0px 40px !important;}
5 #notes_edit_option{color: #2310c3 !important;} 5 #notes_edit_option{color: #2310c3 !important;}
...@@ -56,12 +56,12 @@ ul#mynotes_user-list{ ...@@ -56,12 +56,12 @@ 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-wrap.moodle-dialogue-content.yui3-widget-stdmod{ 59 /* .moodle-dialogue-content{
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 :focus{ 65 :focus{
66 outline: -webkit-focus-ring-color auto 0px !important; 66 outline: -webkit-focus-ring-color auto 0px !important;
67 } 67 }
...@@ -71,41 +71,17 @@ ul#mynotes_user-list{ ...@@ -71,41 +71,17 @@ ul#mynotes_user-list{
71 71
72 } 72 }
73 73
74
75
76 .notes_overview {
77 /*
78 overflow-x: hidden;
79 overflow-y: scroll;
80 height: 270px; */
81 }
82 .notes_overview { 74 .notes_overview {
83 background-color: #f7f7f7; 75 background-color: #f7f7f7;
84 width: 100%; 76 width: 100%;
85 height: 2em; 77 height: 2em;
86 padding: 9px 6px 0; 78 padding: 9px 6px 0;
87
88 /*
89 overflow-x: hidden;
90 overflow-y: scroll;
91 height: 270px; */
92 } 79 }
93 80
94 #notes-slider {
95 /* left: 3px;
96 top: 43px; */
97 }
98
99 .notes_section { 81 .notes_section {
100 padding: 4px 0px 4px 1px; 82 padding: 4px 0px 4px 1px;
101 } 83 }
102 84
103 #course_name {
104 /* padding: 4px 0px 0px 8px;
105 font-size: 19px;
106 color: black; */
107 }
108
109 .notes_course { 85 .notes_course {
110 background-color: #dddddd; 86 background-color: #dddddd;
111 width: 100%; 87 width: 100%;
...@@ -117,8 +93,6 @@ ul#mynotes_user-list{ ...@@ -117,8 +93,6 @@ ul#mynotes_user-list{
117 } 93 }
118 94
119 .notes_data { 95 .notes_data {
120 /* background-color: #f7f7f7;
121 width: 100%; */
122 border: 2px solid #fff; 96 border: 2px solid #fff;
123 text-align: left; 97 text-align: left;
124 padding: 8px; 98 padding: 8px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!