Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Oct 7, 2019
1 parent 70951d0 commit 34cae67
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions app/js/project_name/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,14 @@ app.use(map);
app.use(patterns);
app.use(photos);

config.presync = presync;
config.postsync = postsync;
var ready = app.init(config).then(function() {
app.jqmInit();
app.prefetchAll();
});

// Sync UI
function presync() {
$('button.sync').html("Syncing...");
$('li a.ui-icon-minus, li a.ui-icon-alert')
.removeClass('ui-icon-minus')
.removeClass('ui-icon-alert')
.addClass('ui-icon-refresh');
}

function postsync(items) {
$('button.sync').html("Sync Now");
app.syncRefresh(items);
if (config.debug) {
window.wq = app;
}

return ready;
Expand Down

0 comments on commit 34cae67

Please sign in to comment.