File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,14 +197,15 @@ button.surveyBtn {
197197}
198198
199199# syntaxErrQuestion {
200- margin-top : 10 px ;
200+ margin-top : 12 px ;
201201}
202202
203203# syntaxErrTxtInput {
204204 margin-top : 3px ;
205205 margin-bottom : 6px ;
206+ padding : 2px ;
206207}
207208
208209# syntaxErrSubmitBtn , # syntaxErrCloseBtn {
209- margin-right : 5 px ;
210+ margin-right : 8 px ;
210211}
Original file line number Diff line number Diff line change @@ -279,8 +279,8 @@ function experimentalPopUpSyntaxErrorSurvey() {
279279 <div id="syntaxErrQuestion">\
280280 If you think this message wasn\'t helpful, what would have been the ideal error message for you here?<br/>\
281281 <input type="text" id="syntaxErrTxtInput" size=60 maxlength=150/><br/>\
282- <button class ="syntaxErrSubmitBtn" type="button">Submit</button>\
283- <button class ="syntaxErrCloseBtn" type="button">Cancel </button>\
282+ <button id ="syntaxErrSubmitBtn" type="button">Submit</button>\
283+ <button id ="syntaxErrCloseBtn" type="button">Close </button>\
284284 </div></div>\
285285 ' ) ;
286286 // unbind first, then bind a new one
@@ -290,6 +290,13 @@ function experimentalPopUpSyntaxErrorSurvey() {
290290 bub . redrawCodelineBubble ( ) ;
291291 } ) ;
292292
293+ $ ( bub . qTipContentID ( ) + ' #syntaxErrSubmitBtn' ) . click ( function ( ) {
294+ console . log ( "SUBMIT!" ) ;
295+ } ) ;
296+
297+ $ ( bub . qTipContentID ( ) + ' #syntaxErrCloseBtn' ) . click ( function ( ) {
298+ bub . destroyQTip ( ) ;
299+ } ) ;
293300
294301 var bubbleAceEditor = ace . edit ( 'syntaxErrCodeDisplay' ) ;
295302 // set the size and value ASAP to get alignment working well ...
You can’t perform that action at this time.
0 commit comments