Merge lp:~daker/webbrowser-app/fix.1169757 into lp:webbrowser-app

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 325
Merged at revision: 326
Proposed branch: lp:~daker/webbrowser-app/fix.1169757
Merge into: lp:webbrowser-app
Diff against target: 50 lines (+34/-0)
2 files modified
src/app/AlertDialog.qml (+33/-0)
src/app/Browser.qml (+1/-0)
To merge this branch: bzr merge lp:~daker/webbrowser-app/fix.1169757
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Olivier Tilloy Approve
Review via email: mp+186925@code.launchpad.net

Commit message

Added support for Alert dialogs

To post a comment you must log in.
Revision history for this message
Olivier Tilloy (osomon) wrote :

Looks great!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'src/app/AlertDialog.qml'
--- src/app/AlertDialog.qml 1970-01-01 00:00:00 +0000
+++ src/app/AlertDialog.qml 2013-09-21 19:57:28 +0000
@@ -0,0 +1,33 @@
1/*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This file is part of webbrowser-app.
5 *
6 * webbrowser-app is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 3.
9 *
10 * webbrowser-app is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19import QtQuick 2.0
20import Ubuntu.Components 0.1
21import Ubuntu.Components.Popups 0.1 as Popups
22
23Popups.Dialog {
24 title: i18n.tr("JavaScript Alert")
25 text: model.message
26
27 Button {
28 text: i18n.tr("OK")
29 onClicked: model.dismiss()
30 }
31
32 Component.onCompleted: show()
33}
0\ No newline at end of file34\ No newline at end of file
135
=== modified file 'src/app/Browser.qml'
--- src/app/Browser.qml 2013-09-19 19:39:50 +0000
+++ src/app/Browser.qml 2013-09-21 19:57:28 +0000
@@ -346,6 +346,7 @@
346 devicePixelRatio: browser.qtwebkitdpr346 devicePixelRatio: browser.qtwebkitdpr
347347
348 experimental.preferences.developerExtrasEnabled: browser.developerExtrasEnabled348 experimental.preferences.developerExtrasEnabled: browser.developerExtrasEnabled
349 experimental.alertDialog: AlertDialog { }
349350
350 selectionActions: ActionList {351 selectionActions: ActionList {
351 Action {352 Action {

Subscribers

People subscribed via source and target branches

to status/vote changes: