fixed view form link bug
This commit is contained in:
parent
0255279183
commit
0c98c642ad
6
public/dist/application.js
vendored
6
public/dist/application.js
vendored
|
@ -1739,7 +1739,11 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$scope
|
||||||
|
|
||||||
$scope.formURL = "/#!/forms/" + $scope.myform._id;
|
$scope.formURL = "/#!/forms/" + $scope.myform._id;
|
||||||
|
|
||||||
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + "/#!/forms/" + $scope.myform._id;
|
if(window.location.host.split('.') < 3){
|
||||||
|
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + "/#!/forms/" + $scope.myform._id;
|
||||||
|
} else {
|
||||||
|
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host.split('.').slice(1,3).join('.') + "/#!/forms/" + $scope.myform._id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var refreshFrame = $scope.refreshFrame = function(){
|
var refreshFrame = $scope.refreshFrame = function(){
|
||||||
|
|
4
public/dist/application.min.js
vendored
4
public/dist/application.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -26,7 +26,11 @@ angular.module('forms').controller('AdminFormController', ['$rootScope', '$scope
|
||||||
|
|
||||||
$scope.formURL = "/#!/forms/" + $scope.myform._id;
|
$scope.formURL = "/#!/forms/" + $scope.myform._id;
|
||||||
|
|
||||||
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + "/#!/forms/" + $scope.myform._id;
|
if(window.location.host.split('.') < 3){
|
||||||
|
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host + "/#!/forms/" + $scope.myform._id;
|
||||||
|
} else {
|
||||||
|
$scope.actualFormURL = window.location.protocol + '//' + $scope.myform.admin.username + '.' + window.location.host.split('.').slice(1,3).join('.') + "/#!/forms/" + $scope.myform._id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var refreshFrame = $scope.refreshFrame = function(){
|
var refreshFrame = $scope.refreshFrame = function(){
|
||||||
|
|
Loading…
Reference in a new issue