fixed code conflicts

revert-dabc3590
Hasunie 8 years ago
commit e030be3d24

@ -285,23 +285,7 @@
</li>--> </li>-->
<!-- Advanced --> <!-- Advanced -->
<li class="uk-parent">
<a href="#"><i class="fa fa-plus"></i> Advanced Settings</a>
<ul class="uk-nav-sub">
<br>
<li style="color: white"> <strong>Settings</strong></li>
<!-- Add new tile server url -->
<li>
<a data-toggle="modal" data-target="#addTileServer"><i class="fa fa-plus"></i> Add tile server</a>
</li>
<!-- Add new WMS server url -->
<li>
<a data-toggle="modal" data-target="#addWmsUrl"><i class="fa fa-globe"></i> Add WMS end point</a>
</li>
<br>
</ul>
</ul>
</li>
</ul> </ul>
</div> </div>
@ -894,4 +878,4 @@
</body> </body>
]]> ]]>
</Content> </Content>
</Module> </Module>

@ -41,10 +41,24 @@ function initialLoad() {
processAfterInitializationMap(); processAfterInitializationMap();
//Access gps and make zoom to server location as map center //Access gps and make zoom to server location as map center
//navigator.geolocation.getCurrentPosition(success, error); //navigator.geolocation.getCurrentPosition(success, error);
setPageTitle();
$("#loading").hide(); $("#loading").hide();
} }
} }
function setPageTitle() {
var hash = window.parent.location.hash;
if(hash) {
var startIdx = hash.indexOf("/") + 1;
var lastIdx = hash.length;
var deviceInfoString = hash.substring(startIdx,lastIdx);
var deviceInfo = JSON.parse(deviceInfoString);
if(deviceInfo) {
var newTitle = "[ " + deviceInfo.device.id + "]" + " - Geo Dashboard [" + deviceInfo.device.type + "]";
window.parent.document.title = newTitle;
}
}
}
//function success(position) { //function success(position) {
// var browserLatitude = position.coords.latitude; // var browserLatitude = position.coords.latitude;
@ -120,6 +134,8 @@ function initializeMap() {
} }
}); });
//setting the sidebar to be opened when page loads
$("a[href='#left_side_pannel']").trigger('click');
} }
/* Attribution control */ /* Attribution control */
@ -417,4 +433,4 @@ function clearFocus() {
spatialObject.removeFromMap(); spatialObject.removeFromMap();
selectedSpatialObject = null; selectedSpatialObject = null;
} }
} }

@ -21,5 +21,5 @@ function onRequest(context) {
var deviceId = request.getParameter("deviceId"); var deviceId = request.getParameter("deviceId");
//Redirects to the portal app as we do not use the old analytics view. //Redirects to the portal app as we do not use the old analytics view.
response.sendRedirect(context.app.conf["portalURL"] + "/portal/dashboards/android-iot/real-time?owner=" + user.username + "&deviceId=" + deviceId); response.sendRedirect(context.app.conf["portalURL"] + "/portal/dashboards/android-iot/sensors?owner=" + user.username + "&deviceId=" + deviceId);
} }

@ -67,6 +67,6 @@ function attachEvents() {
function toggleEnrollment(){ function toggleEnrollment(){
$(modalPopupContent).html($("#qr-code-modal").html()); $(modalPopupContent).html($("#qr-code-modal").html());
generateQRCode(modalPopupContent + " .qr-code"); generateQRCode(modalPopupContent + " .qr-code");
showPopup(); modalDialog.show();
} }
} }

@ -282,16 +282,5 @@
{{#zone "bottomJs"}} {{#zone "bottomJs"}}
{{js "/js/download.js"}} {{js "/js/download.js"}}
<script type="text/javascript">
$(".download-link").click(function () {
toggleEnrollment();
});
function toggleEnrollment() {
$(".modalpopup-content").html($("#qr-code-modal").html());
generateQRCode(".modalpopup-content .qr-code");
showPopup();
}
</script>
{{js "/js/jquery.validate.js"}} {{js "/js/jquery.validate.js"}}
{{/zone}} {{/zone}}

@ -1,5 +1,5 @@
{ {
"appName": "WSO2 Enterprise Mobility Manager", "appName": "WSO2 IoT Server",
"cachingEnabled": true, "cachingEnabled": true,
"debuggingEnabled": false, "debuggingEnabled": false,
"permissionRoot": "/", "permissionRoot": "/",
@ -38,8 +38,8 @@
}, },
"generalConfig" : { "generalConfig" : {
"host" : "https://localhost:9443", "host" : "https://localhost:9443",
"companyName" : "WSO2 Enterprise Mobility Manager", "companyName" : "WSO2 IoT Server",
"browserTitle" : "WSO2 EMM", "browserTitle" : "WSO2 IoT Server",
"copyrightPrefix" : "\u00A9 %date-year%, ", "copyrightPrefix" : "\u00A9 %date-year%, ",
"copyrightOwner" : "WSO2 Inc.", "copyrightOwner" : "WSO2 Inc.",
"copyrightOwnersSite" : "http://www.wso2.org", "copyrightOwnersSite" : "http://www.wso2.org",

@ -38,8 +38,8 @@
"windowsConfigRoot" : "%http.ip%/api/device-mgt/windows/v1.0/services/federated/bst/authentication", "windowsConfigRoot" : "%http.ip%/api/device-mgt/windows/v1.0/services/federated/bst/authentication",
"generalConfig" : { "generalConfig" : {
"host" : "%http.ip%", "host" : "%http.ip%",
"companyName" : "WSO2 Enterprise Mobility Manager", "companyName" : "WSO2 IoT Server",
"browserTitle" : "WSO2 EMM", "browserTitle" : "WSO2 IoT Server",
"copyrightText" : "\u00A9 %date-year%, WSO2 Inc. (http://www.wso2.org) All Rights Reserved." "copyrightText" : "\u00A9 %date-year%, WSO2 Inc. (http://www.wso2.org) All Rights Reserved."
}, },
"isOAuthEnabled" : true, "isOAuthEnabled" : true,

@ -338,12 +338,12 @@
data-long="{{device.location.longitude}}"> data-long="{{device.location.longitude}}">
</div> </div>
<br/> <br/>
<a class="padding-left" <a class="padding-left" target="_blank"
href="{{portalUrl}}/portal/dashboards/geo-dashboard/?GLOBAL-STATE={{deviceId}},{{deviceType}}"> href="{{portalUrl}}/portal/dashboards/geo-dashboard/?GLOBAL-STATE={{deviceId}},{{deviceType}}">
<span class="fw-stack"> <span class="fw-stack">
<i class="fw fw-circle-outline fw-stack-2x"></i> <i class="fw fw-circle-outline fw-stack-2x"></i>
<i class="fw fw-map-location fw-stack-1x"></i> <i class="fw fw-map-location fw-stack-1x"></i>
</span>View device on the map </span> Add Geo Fencing
</a> </a>
{{else}} {{else}}
<div id="map-error" class="message message-warning"> <div id="map-error" class="message message-warning">

@ -73,10 +73,9 @@ function generateQRCode(qrCodeClass) {
} }
function toggleEnrollment() { function toggleEnrollment() {
console.log("something happenedfd!");
$(".modal-content").html($("#qr-code-modal").html()); $(".modal-content").html($("#qr-code-modal").html());
generateQRCode(".modal-content .qr-code"); generateQRCode(".modal-content .qr-code");
showPopup(); modalDialog.show();
} }
var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) { var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) {
@ -345,10 +344,6 @@ $.fn.collapse_nav_sub = function () {
} }
}; };
$(".download-link").click(function(){
toggleEnrollment();
});
$(document).ready(function () { $(document).ready(function () {
$.sidebar_toggle(); $.sidebar_toggle();
if (typeof $.fn.collapse == 'function') { if (typeof $.fn.collapse == 'function') {

@ -75,7 +75,7 @@ function generateQRCode(qrCodeClass) {
function toggleEnrollment() { function toggleEnrollment() {
$(".modal-content").html($("#qr-code-modal").html()); $(".modal-content").html($("#qr-code-modal").html());
generateQRCode(".modal-content .qr-code"); generateQRCode(".modal-content .qr-code");
showPopup(); modalDialog.show();
} }
var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) { var updateNotificationCountOnSuccess = function (data, textStatus, jqXHR) {

@ -1,5 +1,5 @@
{ {
"appName": "WSO2 IOTS", "appName": "WSO2 IoT Server",
"cachingEnabled": true, "cachingEnabled": true,
"debuggingEnabled": false, "debuggingEnabled": false,
"permissionRoot": "/", "permissionRoot": "/",
@ -38,8 +38,13 @@
}, },
"generalConfig" : { "generalConfig" : {
"host" : "https://localhost:9443", "host" : "https://localhost:9443",
<<<<<<< HEAD
"companyName" : "WSO2 IOTS", "companyName" : "WSO2 IOTS",
"browserTitle" : "WSO2 IOT", "browserTitle" : "WSO2 IOT",
=======
"companyName" : "WSO2 IoT Server",
"browserTitle" : "WSO2 IoT Server",
>>>>>>> 05e2cb7bb8db033166a81e327d1c82c83a5a8178
"copyrightPrefix" : "\u00A9 %date-year%, ", "copyrightPrefix" : "\u00A9 %date-year%, ",
"copyrightOwner" : "WSO2 Inc.", "copyrightOwner" : "WSO2 Inc.",
"copyrightOwnersSite" : "http://www.wso2.org", "copyrightOwnersSite" : "http://www.wso2.org",

@ -38,8 +38,8 @@
"windowsConfigRoot" : "%http.ip%/api/device-mgt/windows/v1.0/federated/bst/authentication", "windowsConfigRoot" : "%http.ip%/api/device-mgt/windows/v1.0/federated/bst/authentication",
"generalConfig" : { "generalConfig" : {
"host" : "%http.ip%", "host" : "%http.ip%",
"companyName" : "WSO2 IOT", "companyName" : "WSO2 IoT Server",
"browserTitle" : "WSO2 IOT", "browserTitle" : "WSO2 IoT Server",
"copyrightText" : "\u00A9 %date-year%, WSO2 Inc. (http://www.wso2.org) All Rights Reserved." "copyrightText" : "\u00A9 %date-year%, WSO2 Inc. (http://www.wso2.org) All Rights Reserved."
}, },
"isOAuthEnabled" : true, "isOAuthEnabled" : true,

@ -1244,7 +1244,7 @@
<javax.ws.rs.version>1.1.1</javax.ws.rs.version> <javax.ws.rs.version>1.1.1</javax.ws.rs.version>
<!-- Carbon Device Management --> <!-- Carbon Device Management -->
<carbon.devicemgt.version>2.0.7</carbon.devicemgt.version> <carbon.devicemgt.version>2.0.8-SNAPSHOT</carbon.devicemgt.version>
<carbon.devicemgt.version.range>[2.0.0, 3.0.0)</carbon.devicemgt.version.range> <carbon.devicemgt.version.range>[2.0.0, 3.0.0)</carbon.devicemgt.version.range>
<!-- Carbon App Management --> <!-- Carbon App Management -->

Loading…
Cancel
Save