Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
218c523d
Commit
218c523d
authored
May 28, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1320 from akudev/master
SAPUI5: fix adding new tasks, remove browser-dependent autoselect
parents
90ab24a4
08da3733
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
examples/sapui5/index.html
examples/sapui5/index.html
+1
-1
examples/sapui5/js/todo/Todo.controller.js
examples/sapui5/js/todo/Todo.controller.js
+7
-6
examples/sapui5/js/todo/Todo.view.js
examples/sapui5/js/todo/Todo.view.js
+1
-2
No files found.
examples/sapui5/index.html
View file @
218c523d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
SAPUI5 • TodoMVC
</title>
<title>
SAPUI5 • TodoMVC
</title>
<script
<script
src=
"https://sapui5.
netweaver
.ondemand.com/resources/sap-ui-core.js"
src=
"https://sapui5.
hana
.ondemand.com/resources/sap-ui-core.js"
id=
"sap-ui-bootstrap"
id=
"sap-ui-bootstrap"
data-sap-ui-libs=
"sap.ui.commons"
data-sap-ui-libs=
"sap.ui.commons"
data-sap-ui-theme=
"base"
>
data-sap-ui-theme=
"base"
>
...
...
examples/sapui5/js/todo/Todo.controller.js
View file @
218c523d
...
@@ -39,12 +39,13 @@
...
@@ -39,12 +39,13 @@
return
;
return
;
}
}
this
.
model
.
setProperty
(
'
/todos/
'
,
this
.
model
.
getProperty
(
'
/todos/
'
)
var
todos
=
this
.
model
.
getProperty
(
'
/todos/
'
);
.
push
({
todos
.
push
({
id
:
jQuery
.
sap
.
uid
(),
id
:
jQuery
.
sap
.
uid
(),
done
:
false
,
done
:
false
,
text
:
todo
text
:
todo
}));
});
this
.
model
.
setProperty
(
'
/todos/
'
,
todos
);
this
.
store
.
set
(
this
.
model
.
getData
());
this
.
store
.
set
(
this
.
model
.
getData
());
...
...
examples/sapui5/js/todo/Todo.view.js
View file @
218c523d
...
@@ -44,8 +44,7 @@
...
@@ -44,8 +44,7 @@
// Text field for entering a new todo
// Text field for entering a new todo
newTodo
=
new
todo
.
SmartTextField
(
'
new-todo
'
,
{
newTodo
=
new
todo
.
SmartTextField
(
'
new-todo
'
,
{
placeholder
:
'
What needs to be done?
'
,
placeholder
:
'
What needs to be done?
'
,
// Don't autofocus in case of MSIE and Opera as both hide placeholder on focus
autofocus
:
true
autofocus
:
!
sap
.
ui
.
Device
.
browser
.
internet_explorer
&&
!
$
.
browser
.
opera
}).
attachChange
(
function
()
{
}).
attachChange
(
function
()
{
oController
.
createTodo
(
this
.
getProperty
(
'
value
'
));
oController
.
createTodo
(
this
.
getProperty
(
'
value
'
));
this
.
setValue
(
''
);
this
.
setValue
(
''
);
...
...
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