Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

a-nigredo
Copy link
Contributor

No description provided.

$("a#add").hide();
}

$( "#sortable" ).sortable({update: function(event, ui) {reIndex()}});
Copy link
Member

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(){
Copy link
Member

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");
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants