Merge branch 'master' of github.com:roundcube/roundcubemail
| | |
| | | /** |
| | | * Unselect selected row(s) |
| | | */ |
| | | clear_selection: function(id) |
| | | clear_selection: function(id, no_event) |
| | | { |
| | | var n, num_select = this.selection.length; |
| | | |
| | |
| | | this.selection = []; |
| | | } |
| | | |
| | | if (num_select && !this.selection.length) |
| | | if (num_select && !this.selection.length && !no_event) |
| | | this.triggerEvent('select'); |
| | | }, |
| | | |
| | |
| | | |
| | | if (!multiple) { |
| | | if (this.selection.length > 1 || !this.in_selection(id)) { |
| | | this.clear_selection(); |
| | | this.clear_selection(null, true); |
| | | this.selection[0] = id; |
| | | $(this.rows[id].obj).addClass('selected'); |
| | | } |
| | |
| | | } |
| | | |
| | | // plugin already loaded |
| | | if ($this->plugins[$plugin_name] || class_exists($plugin_name, false)) { |
| | | if ($this->plugins[$plugin_name]) { |
| | | return true; |
| | | } |
| | | |
| | |
| | | . DIRECTORY_SEPARATOR . $plugin_name . '.php'; |
| | | |
| | | if (file_exists($fn)) { |
| | | if (!class_exists($plugin_name, false)) { |
| | | include $fn; |
| | | } |
| | | |
| | | // instantiate class if exists |
| | | if (class_exists($plugin_name, false)) { |