~daker/ubuntu-html5-theme/fix.1232533

« back to all changes in this revision

Viewing changes to 0.1/ambiance/js/buttons.js

  • Committer: Tarmac
  • Author(s): daker
  • Date: 2013-10-30 21:08:53 UTC
  • mfrom: (87.2.2 fix.1240682)
  • Revision ID: tarmac-20131030210853-5jd3thtm3y2rlj49
Space instead of tab. Fixes: https://bugs.launchpad.net/bugs/1240682.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * This file is part of ubuntu-html5-theme.
6
6
 *
7
7
 * This package is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU Lesser General Public License as 
9
 
 * published by the Free Software Foundation; either version 3 of the 
 
8
 * it under the terms of the GNU Lesser General Public License as
 
9
 * published by the Free Software Foundation; either version 3 of the
10
10
 * License, or
11
11
 * (at your option) any later version.
12
 
 
 
12
 
13
13
 * This package is distributed in the hope that it will be useful,
14
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
16
 * GNU General Public License for more details.
17
 
 
18
 
 * You should have received a copy of the GNU Lesser General Public 
19
 
 * License along with this program. If not, see 
 
17
 
 
18
 * You should have received a copy of the GNU Lesser General Public
 
19
 * License along with this program. If not, see
20
20
 * <http://www.gnu.org/licenses/>.
21
21
 */
22
22
 
27
27
 
28
28
Button.prototype = {
29
29
    click: function (callback) {
30
 
        if ( ! document.getElementById(this.id)) {
31
 
            throw "Invalid button ID: " + String(this.id);
32
 
        }
 
30
    if ( ! document.getElementById(this.id)) {
 
31
        throw "Invalid button ID: " + String(this.id);
 
32
    }
33
33
        new FastButton(document.getElementById(this.id), callback);
34
34
    }
35
35
};