on xenial help sign in
more javascript semi-colons.
commit9d4a11753683e09434c2581d0b19cc57b3b9be56 authorNick Dedekind <nicholas.dedekind@gmail.com> dateThu 27 Jun 2013, 10:09 (13 years ago) parent1cc5c81
10 files changed+30−30
Panel/IndicatorItem.qml+2−2 Panel/Indicators/NetworkIndicatorPage.qml+1−1 modules/Unity/Indicators/qml/SliderMenu.qml+1−1 modules/Unity/Indicators/qml/messaging/HeroMessage.qml+5−5 modules/Unity/Indicators/qml/messaging/MessageItem.qml+7−7 modules/Unity/Indicators/qml/messaging/QuickReply.qml+1−1 modules/Unity/Indicators/qml/messaging/SnapDecision.qml+3−3 modules/Unity/Indicators/qml/messaging/utils.js+1−1 modules/Unity/Indicators/qml/network/AccessPoint.qml+6−6 modules/Unity/Indicators/qml/network/PasswordPage.qml+3−3
Panel/IndicatorItem.qml+2−2
@@ -36,11 +36,11 @@ Item {
3636 id: loader
3737
3838 onLoaded: {
39− item.height = Qt.binding(function() { return indicatorItem.height; })
39+ item.height = Qt.binding(function() { return indicatorItem.height; });
4040
4141 for(var pName in indicatorProperties) {
4242 if (item.hasOwnProperty(pName)) {
43− item[pName] = indicatorProperties[pName]
43+ item[pName] = indicatorProperties[pName];
4444 }
4545 }
4646 }
Panel/Indicators/NetworkIndicatorPage.qml+1−1
@@ -57,7 +57,7 @@ PageStack {
5757 id: networkAgent
5858
5959 onSecretRequested: {
60− _network.push(passwordPageComponent)
60+ _network.push(passwordPageComponent);
6161 }
6262 }
6363
modules/Unity/Indicators/qml/SliderMenu.qml+1−1
@@ -54,7 +54,7 @@ Menu {
5454
5555 // Use this to disable the label, since there is not way to do it on the component.
5656 function formatValue(v) {
57− return ""
57+ return "";
5858 }
5959 }
6060
modules/Unity/Indicators/qml/messaging/HeroMessage.qml+5−5
@@ -51,17 +51,17 @@ Indicators.BasicMenu {
5151
5252 onAppIconClicked: {
5353 if (action && action.valid) {
54− deactivateMenu()
55− action.activate(true)
54+ deactivateMenu();
55+ action.activate(true);
5656 }
5757 }
5858 }
5959
6060 onClicked: {
6161 if (menuActivated) {
62− deactivateMenu()
62+ deactivateMenu();
6363 } else {
64− activateMenu()
64+ activateMenu();
6565 }
6666 }
6767
@@ -109,7 +109,7 @@ Indicators.BasicMenu {
109109
110110 onItemRemoved: {
111111 if (action && action.valid) {
112− action.activate(false)
112+ action.activate(false);
113113 }
114114 }
115115}
modules/Unity/Indicators/qml/messaging/MessageItem.qml+7−7
@@ -77,22 +77,22 @@ Indicators.BasicMenu {
7777 {
7878 var parameterType = ""
7979 for (var actIndex in actionsDescription) {
80− var desc = actionsDescription[actIndex]
80+ var desc = actionsDescription[actIndex];
8181 if (desc["parameter-type"] !== undefined) {
82− parameterType += desc["parameter-type"]
82+ parameterType += desc["parameter-type"];
8383 } else {
84− parameterType += "_"
84+ parameterType += "_";
8585 }
8686 }
8787
8888 if (parameterType === "") {
89− __contents.source = "SimpleTextMessage.qml"
89+ __contents.source = "SimpleTextMessage.qml";
9090 } else if (parameterType === "s") {
91− __contents.source = "TextMessage.qml"
91+ __contents.source = "TextMessage.qml";
9292 } else if (parameterType === "_s") {
93− __contents.source = "SnapDecision.qml"
93+ __contents.source = "SnapDecision.qml";
9494 } else {
95− console.debug("Unknown paramater type: " + parameterType)
95+ console.debug("Unknown paramater type: " + parameterType);
9696 }
9797 }
9898}
modules/Unity/Indicators/qml/messaging/QuickReply.qml+1−1
@@ -109,7 +109,7 @@ Item {
109109
110110 anchors.fill: parent
111111 onClicked: {
112− __actionTextField.text = modelData
112+ __actionTextField.text = modelData;
113113 }
114114 }
115115
modules/Unity/Indicators/qml/messaging/SnapDecision.qml+3−3
@@ -54,9 +54,9 @@ HeroMessage {
5454
5555 onClicked: {
5656 if (__quickreply.state === "") {
57− __quickreply.state = "expanded"
57+ __quickreply.state = "expanded";
5858 } else {
59− __quickreply.state = ""
59+ __quickreply.state = "";
6060 }
6161 }
6262 }
@@ -129,7 +129,7 @@ HeroMessage {
129129
130130 onStateChanged: {
131131 if (state === "") {
132− __quickreply.state = ""
132+ __quickreply.state = "";
133133 }
134134 }
135135}
modules/Unity/Indicators/qml/messaging/utils.js+1−1
@@ -23,5 +23,5 @@
2323function formatDate(timestamp) {
2424 // timestamp is in microseconds since epoch
2525 var date = new Date(timestamp / 1000);
26− return Qt.formatDateTime(date, "hh:mm - MMM dd")
26+ return Qt.formatDateTime(date, "hh:mm - MMM dd");
2727}
modules/Unity/Indicators/qml/network/AccessPoint.qml+6−6
@@ -33,19 +33,19 @@ Indicators.Menu {
3333 var signalStrength = parseInt(wifiApStrength)
3434
3535 if (data.extra.canonical_wifi_ap_is_adhoc) {
36− imageName = "nm-adhoc"
36+ imageName = "nm-adhoc";
3737 } else if (signalStrength == 0) {
38− imageName = "nm-signal-00"
38+ imageName = "nm-signal-00";
3939 } else if (signalStrength <= 25) {
40− imageName = "nm-signal-25"
40+ imageName = "nm-signal-25";
4141 } else if (signalStrength <= 50) {
42− imageName = "nm-signal-50"
42+ imageName = "nm-signal-50";
4343 } else if (signalStrength <= 75) {
44− imageName = "nm-signal-75"
44+ imageName = "nm-signal-75";
4545 }
4646
4747 if (data.extra.canonical_wifi_ap_is_secure) {
48− imageName += "-secure"
48+ imageName += "-secure";
4949 }
5050
5151 return "image://gicon/" + imageName;
modules/Unity/Indicators/qml/network/PasswordPage.qml+3−3
@@ -62,7 +62,7 @@ Page {
6262 width: units.gu(10)
6363 onClicked: {
6464 agent.cancel(token);
65− pageStack.pop()
65+ pageStack.pop();
6666 }
6767 }
6868
@@ -70,8 +70,8 @@ Page {
7070 text: "Ok"
7171 width: units.gu(10)
7272 onClicked: {
73− agent.authenticate(token, _password.text)
74− pageStack.pop()
73+ agent.authenticate(token, _password.text);
74+ pageStack.pop();
7575 }
7676 }
7777 }