diff --git a/control/content/app.js b/control/content/app.js index e28e589..911ce04 100644 --- a/control/content/app.js +++ b/control/content/app.js @@ -130,4 +130,8 @@ webviewPluginApp.controller("webviewPluginCtrl", ["$scope", "$log", "$timeout", } }); }; + + $scope.isUrlValid = function (url) { + return /[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,6}\b(\/[-a-zA-Z0-9@:%_\+.~#?!?\/?\w\/?&//=]*)?/.test(url); + }; }]); \ No newline at end of file diff --git a/control/content/index.html b/control/content/index.html index 3a58c21..0d71adb 100644 --- a/control/content/index.html +++ b/control/content/index.html @@ -29,8 +29,7 @@
+ ng-model="data.content.url">
+
+
+

Seems like + your url is not valid ! But if you + want, + you can + still + add it + to your plugin.

+
+
+
Url diff --git a/widget/index.html b/widget/index.html index 42784cc..7cb5549 100644 --- a/widget/index.html +++ b/widget/index.html @@ -149,7 +149,7 @@

Success!

}; $scope.iframeLoadedCallBack = function () { - $scope.loading = 0 + $scope.loading = 0; $scope.$apply(); var webviewIframe = document.getElementById("webviewIframe"); buildfire.spinner.hide();