move dialog
TNL-6047
This commit is contained in:
committed by
Mushtaq Ali
parent
52f8c9763a
commit
1b011af7e2
@@ -78,16 +78,17 @@
|
||||
return this;
|
||||
},
|
||||
|
||||
inFocus: function() {
|
||||
inFocus: function(wrapperElementSelector) {
|
||||
var wrapper = wrapperElementSelector || '.wrapper',
|
||||
tabbables;
|
||||
this.options.outFocusElement = this.options.outFocusElement || document.activeElement;
|
||||
|
||||
// Set focus to the container.
|
||||
this.$('.wrapper').first().focus();
|
||||
|
||||
this.$(wrapper).first().focus();
|
||||
|
||||
// Make tabs within the prompt loop rather than setting focus
|
||||
// back to the main content of the page.
|
||||
var tabbables = this.$(tabbable_elements.join());
|
||||
tabbables = this.$(tabbable_elements.join());
|
||||
tabbables.on('keydown', function(event) {
|
||||
// On tab backward from the first tabbable item in the prompt
|
||||
if (event.which === 9 && event.shiftKey && event.target === tabbables.first()[0]) {
|
||||
|
||||
@@ -243,7 +243,7 @@ class ContainerPage(PageObject, HelpMixin):
|
||||
"""
|
||||
Duplicate the item with index source_index (based on vertical placement in page).
|
||||
"""
|
||||
click_css(self, 'a.duplicate-button', source_index)
|
||||
click_css(self, '.duplicate-button', source_index)
|
||||
|
||||
def delete(self, source_index):
|
||||
"""
|
||||
@@ -252,7 +252,7 @@ class ContainerPage(PageObject, HelpMixin):
|
||||
The index of the first item is 0.
|
||||
"""
|
||||
# Click the delete button
|
||||
click_css(self, 'a.delete-button', source_index, require_notification=False)
|
||||
click_css(self, '.delete-button', source_index, require_notification=False)
|
||||
# Click the confirmation dialog button
|
||||
confirm_prompt(self)
|
||||
|
||||
@@ -451,14 +451,14 @@ class XBlockWrapper(PageObject):
|
||||
"""
|
||||
Returns true if this xblock has a 'duplicate' button
|
||||
"""
|
||||
return self.q(css=self._bounded_selector('a.duplicate-button'))
|
||||
return self.q(css=self._bounded_selector('.duplicate-button'))
|
||||
|
||||
@property
|
||||
def has_delete_button(self):
|
||||
"""
|
||||
Returns true if this xblock has a 'delete' button
|
||||
"""
|
||||
return self.q(css=self._bounded_selector('a.delete-button'))
|
||||
return self.q(css=self._bounded_selector('.delete-button'))
|
||||
|
||||
@property
|
||||
def has_edit_visibility_button(self):
|
||||
|
||||
Reference in New Issue
Block a user