Permalink
Browse files

Adding button to cancel add contact group.

  • Loading branch information...
1 parent 9d72713 commit d7b021358285fb7319c513f8a86a0047d6cd1155 @jmatth jmatth committed Jul 31, 2012
Showing with 22 additions and 3 deletions.
  1. +3 −2 program/js/app.js
  2. +9 −0 skins/default/addressbook.css
  3. +9 −0 skins/larry/addressbook.css
  4. +1 −1 skins/larry/ui.js
View
@@ -4390,9 +4390,10 @@ function rcube_webmail()
return;
if (!this.name_input) {
- this.name_input = $('<input>').attr('type', 'text').data('tt', type);
+ this.name_input = $('<input>').attr('type', 'text').attr('style', 'margin-left:5px;').data('tt', type);
+ this.cancel_button = $('<a>').attr('class', 'canceladd').attr('onclick', 'rcmail.reset_add_input()').attr('href', '#');
this.name_input.bind('keydown', function(e){ return rcmail.add_input_keydown(e); });
- this.name_input_li = $('<li>').addClass(type).append(this.name_input);
+ this.name_input_li = $('<li>').addClass(type).append(this.cancel_button,this.name_input);
var li = type == 'contactsearch' ? $('li:last', this.gui_objects.folderlist) : this.get_folder_li(this.env.source);
this.name_input_li.insertAfter(li);
@@ -164,6 +164,15 @@
white-space: nowrap;
}
+#directorylist li a.canceladd {
+ background: url(images/icons/reset.gif) no-repeat;
+ display: inline;
+ margin-right: -13px;
+ margin-left: -12px;
+ padding-top: 0px;
+ cursor: auto;
+}
+
#directorylist li.contactgroup
{
padding-left: 15px;
@@ -322,3 +322,12 @@ a.deletebutton {
text-indent: -5000px;
background: url(images/buttons.png) -7px -377px no-repeat;
}
+
+#directorylist li a.canceladd {
+ background: url(images/buttons.png) -1000px 0 no-repeat;
+ background-position: -26px -317px;
+ display: inline;
+ padding: 4px 24px 5px 0px;
+ cursor: auto;
+ margin-left:5px;
+}
View
@@ -152,7 +152,7 @@ function rcube_mail_ui()
if (rcmail.env.action == '') {
new rcube_splitter({ id:'addressviewsplitterd', p1:'#addressview-left', p2:'#addressview-right',
- orientation:'v', relative:true, start:226, min:150, size:12, render:resize_leftcol }).init();
+ orientation:'v', relative:true, start:226, min:225, size:12, render:resize_leftcol }).init();
new rcube_splitter({ id:'addressviewsplitter', p1:'#addresslist', p2:'#contacts-box',
orientation:'v', relative:true, start:286, min:270, size:12 }).init();

0 comments on commit d7b0213

Please sign in to comment.