-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#JC-1373 Add dynamic poll item functionality #40
base: master
Are you sure you want to change the base?
Conversation
$("a#add").hide(); | ||
} | ||
|
||
$( "#sortable" ).sortable({update: function(event, ui) {reIndex()}}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$( "#sortable" ) spaces are't needed
* Do refactoring accroding to CR
* Do refactoring according to CR * Add Button for adding or removing poll * Fix markup bugs * Fix typo for UK language
$("a#add").hide(); | ||
} | ||
|
||
$("#addPollButton").click(function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this button have 2 action? delete and add? if yes then id #addPollButton is not appropriate.
* Rename poll button id * Rename poll config class
@@ -82,6 +82,7 @@ function initEditor(textAreaId, htmlAreaId, baseDivId) { | |||
* preview mode. | |||
*/ | |||
function togglePreviewMode(allowedUrls) { | |||
addPollItemButton = $("input#addPollButton"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#pollButton ? you change name or it is another button. and check in another places
* Rename pollButton in any places
No description provided.