Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
803adf33
Commit
803adf33
authored
Nov 18, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed backendurl typo
parent
2caa74eb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
5 deletions
+14
-5
app.js
app/app.js
+1
-1
list.html
app/components/crud/templates/list.html
+4
-1
main.js
app/main.js
+1
-1
form_service.js
app/zetalib/forms/form_service.js
+3
-0
app.js
dist/app.js
+1
-1
templates.js
dist/templates.js
+4
-1
No files found.
app/app.js
View file @
803adf33
...
...
@@ -34,7 +34,7 @@ var app = angular.module(
*/
constant
(
"RESTURL"
,
(
function
()
{
// todo: below backendurl definition is for development purpose and will be deleted
var
backendurl
=
location
.
href
.
indexOf
(
'nightly'
)
?
"//nightly.api.ulakbus.net"
:
"//api.ulakbus.net/"
;
var
backendurl
=
location
.
href
.
indexOf
(
'nightly'
)
?
"//nightly.api.ulakbus.net
/
"
:
"//api.ulakbus.net/"
;
if
(
document
.
cookie
.
indexOf
(
"backendurl"
)
>
-
1
)
{
var
cookiearray
=
document
.
cookie
.
split
(
';'
);
angular
.
forEach
(
cookiearray
,
function
(
item
)
{
...
...
app/components/crud/templates/list.html
View file @
803adf33
...
...
@@ -42,7 +42,10 @@
<span
ng-if=
"$index!=1"
>
{{field}}
</span>
</td>
<td>
<a
ng-href=
"{{object.editLink}}"
>
Edit
</a>
<button
class=
"btn btn-primary"
style=
"margin-right: 5px;"
ng-repeat=
"action in object.actions"
ng-if=
"action.show_as==='button'"
ng-click=
"do_action(object)"
>
{{action.name}}
</button>
<a
ng-href=
"javascript:void(0)"
ng-repeat=
"action in object.actions"
ng-if=
"action.show_as==='link'"
ng-click=
"do_action(object)"
>
{{action.name}}
</a>
<br>
</td>
</tr>
...
...
app/main.js
View file @
803adf33
...
...
@@ -39,7 +39,7 @@ var app = angular.module(
*/
constant
(
"RESTURL"
,
(
function
()
{
// todo: below backendurl definition is for development purpose and will be deleted
var
backendurl
=
location
.
href
.
indexOf
(
'nightly'
)
?
"//nightly.api.ulakbus.net"
:
"//api.ulakbus.net/"
;
var
backendurl
=
location
.
href
.
indexOf
(
'nightly'
)
?
"//nightly.api.ulakbus.net
/
"
:
"//api.ulakbus.net/"
;
if
(
document
.
cookie
.
indexOf
(
"backendurl"
)
>
-
1
)
{
var
cookiearray
=
document
.
cookie
.
split
(
';'
);
angular
.
forEach
(
cookiearray
,
function
(
item
)
{
...
...
app/zetalib/forms/form_service.js
View file @
803adf33
...
...
@@ -276,6 +276,9 @@ form_generator.factory('Generator', function ($http, $q, $timeout, $location, $c
return
newdatearray
.
join
(
'.'
);
}
};
generator
.
doItemAction
=
function
(
object
)
{
debugger
;
};
/**
* itemLinksGenerator function used for generic links for list items
* basicly creates add, edit, detail links
...
...
dist/app.js
View file @
803adf33
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
803adf33
...
...
@@ -121,7 +121,10 @@ angular.module("components/crud/templates/list.html", []).run(["$templateCache",
" <span ng-if=
\"
$index!=1
\"
>{{field}}</span>
\n
"
+
" </td>
\n
"
+
" <td>
\n
"
+
" <a ng-href=
\"
{{object.editLink}}
\"
>Edit</a>
\n
"
+
" <button class=
\"
btn btn-primary
\"
style=
\"
margin-right: 5px;
\"
ng-repeat=
\"
action in object.actions
\"\n
"
+
" ng-if=
\"
action.show_as==='button'
\"
ng-click=
\"
do_action(object)
\"
>{{action.name}}</button>
\n
"
+
" <a ng-href=
\"
javascript:void(0)
\"
ng-repeat=
\"
action in object.actions
\"\n
"
+
" ng-if=
\"
action.show_as==='link'
\"
ng-click=
\"
do_action(object)
\"
>{{action.name}}</a>
\n
"
+
" <br>
\n
"
+
" </td>
\n
"
+
" </tr>
\n
"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment