added static help and legal pages for native apps
This commit is contained in:
parent
e5e9236f4b
commit
97fdce5c09
@ -1 +1,5 @@
|
||||
<div ng-bind-html-unsafe="help"></div>
|
||||
<? if (!$this->export) : ?>
|
||||
<div ng-bind-html-unsafe="help"></div>
|
||||
<? else : ?>
|
||||
<?=$this->display('help/index')?>
|
||||
<? endif ; ?>
|
||||
@ -1 +1,5 @@
|
||||
<div ng-bind-html-unsafe="legal"></div>
|
||||
<? if (!$this->export) : ?>
|
||||
<div ng-bind-html-unsafe="legal"></div>
|
||||
<? else : ?>
|
||||
<?=$this->display('legal/index')?>
|
||||
<? endif ; ?>
|
||||
@ -2,9 +2,11 @@
|
||||
* legal page
|
||||
*/
|
||||
NGApp.controller('legal', function ($scope, $http) {
|
||||
$http.get(App.service + 'legal').success(function(data) {
|
||||
$scope.legal = data.data;
|
||||
});
|
||||
if (!App.isPhoneGap) {
|
||||
$http.get(App.service + 'legal').success(function(data) {
|
||||
$scope.legal = data.data;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -12,10 +14,15 @@ NGApp.controller('legal', function ($scope, $http) {
|
||||
* help page
|
||||
*/
|
||||
NGApp.controller('help', function ($scope, $http) {
|
||||
$http.get(App.service + 'help').success(function(data) {
|
||||
$scope.help = data.data;
|
||||
$('.crunchbutton-join-mail').html('moc.nottubhcnurc@nioj'.split('').reverse().join(''));
|
||||
});
|
||||
var fm = function() {
|
||||
$('.crunchbutton-join-mail').html('moc.nottubhcnurc@nioj'.split('').reverse().join(''));
|
||||
}
|
||||
if (!App.isPhoneGap) {
|
||||
$http.get(App.service + 'help').success(function(data) {
|
||||
$scope.help = data.data;
|
||||
fm();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user