Skip to content

Commit 115da97

Browse files
committed
boom
1 parent 5bb21b0 commit 115da97

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎v3/css/opt-frontend.css‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,15 @@ button.surveyBtn {
197197
}
198198

199199
#syntaxErrQuestion {
200-
margin-top: 10px;
200+
margin-top: 12px;
201201
}
202202

203203
#syntaxErrTxtInput {
204204
margin-top: 3px;
205205
margin-bottom: 6px;
206+
padding: 2px;
206207
}
207208

208209
#syntaxErrSubmitBtn, #syntaxErrCloseBtn {
209-
margin-right: 5px;
210+
margin-right: 8px;
210211
}

‎v3/js/opt-frontend.js‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ...

0 commit comments

Comments
 (0)