equal
deleted
inserted
replaced
301 if not button.label.endswith('apply'): |
301 if not button.label.endswith('apply'): |
302 if button.label.endswith('cancel'): |
302 if button.label.endswith('cancel'): |
303 button = copy.deepcopy(button) |
303 button = copy.deepcopy(button) |
304 button.cwaction = None |
304 button.cwaction = None |
305 button.onclick = cancelclick |
305 button.onclick = cancelclick |
|
306 if 'class' in button.attrs: |
|
307 new_class = button.attrs['class'].replace('cwjs-edition-cancel', '') |
|
308 button.attrs['class'] = new_class |
306 form_buttons.append(button) |
309 form_buttons.append(button) |
307 form.form_buttons = form_buttons |
310 form.form_buttons = form_buttons |
308 else: # base |
311 else: # base |
309 form.form_buttons = [SubmitButton(), |
312 form.form_buttons = [SubmitButton(), |
310 Button(stdmsgs.BUTTON_CANCEL, onclick=cancelclick)] |
313 Button(stdmsgs.BUTTON_CANCEL, onclick=cancelclick)] |