Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 97f2fd9

Browse files
Fixed example.
1 parent a98c8ea commit 97f2fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎image-resize/controllers/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function view_index() {
5555
// image.command(command, [priority]);
5656

5757
// IMPORTANT: see here https://github.com/petersirka/total.js/tree/master/examples/routing
58-
image.resizeCenter(300, 300).save(filename, function(err,filename) {
59-
model.url = '<div><img src="/{0}?ts={1}" width="300" height="300" alt="Uploaded image" /></div><br />'.format(Path.basename(filename), new Date().getTime());
58+
image.resizeCenter(300, 300).save(filename, function(err) {
59+
model.url = '<div><img src="/{0}?ts={1}" width="300" height="300" alt="Uploaded image" /></div><br />'.format(U.getName(filename), new Date().getTime());
6060
self.view('index', model);
6161
});
6262

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /