summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-13 18:52:06 -0400
committerJules Laplace <jules@okfoc.us>2015-04-13 18:52:06 -0400
commit455c09226f1bc57021147e889ef1127e982ed67c (patch)
tree7a3fc6be24123cbd73001177a37df30fc53feac7
parentdee6b3e3fd32b6b002a465e5723d51860e763b20 (diff)
rename shortname -> menu to be clear
-rw-r--r--site/db.json2
-rw-r--r--site/index.js2
-rw-r--r--site/templates/all.liquid8
-rw-r--r--site/templates/index.liquid8
-rw-r--r--themes/okadmin/public/js/app.js6
5 files changed, 13 insertions, 13 deletions
diff --git a/site/db.json b/site/db.json
index 6c598ab..eb0265d 100644
--- a/site/db.json
+++ b/site/db.json
@@ -4,7 +4,7 @@
{
"id": "diesel-jogg-jeans-ss15-denim-campaign",
"title": "DIESEL JOGG JEANS SS15 DENIM CAMPAIGN",
- "shortname": "DIESEL SS15",
+ "menu": "DIESEL SS15",
"description": "Sed posuere consectetur est at lobortis. Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper. Donec sed odio dui. \r\n\r\nVestibulum id ligula porta felis euismod semper. Vestibulum id ligula porta felis euismod semper. Vestibulum id ligula porta felis euismod semper. Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. \r\n\r\nCurabitur blandit tempus porttitor. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec ullamcorper nulla non metus auctor fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur blandit tempus porttitor. Maecenas sed diam eget risus varius blandit sit amet non magna.",
"video": {
"url": "http://vimeo.com/112498725",
diff --git a/site/index.js b/site/index.js
index d4f5cb4..189dfc4 100644
--- a/site/index.js
+++ b/site/index.js
@@ -3,7 +3,7 @@ var okcms = require('..');
var projectSchema = {
id: {type: 'string', id: true, hidden: true},
title: {type: 'string'},
- shortname: {type: 'string'},
+ menu: {type: 'string'},
description: {type: 'text'},
video: {type: 'video'},
images: {type: 'captioned-image-list'},
diff --git a/site/templates/all.liquid b/site/templates/all.liquid
index 01ddc3a..e6f39bf 100644
--- a/site/templates/all.liquid
+++ b/site/templates/all.liquid
@@ -2,25 +2,25 @@
{% for project in retails %}
<div class="project" data-id="{{ project.id }}" data-type="retail">
<img src="{{ project.images[0].uri }}">
- <span>{{ project.shortname }}</span>
+ <span>{{ project.title }}</span>
</div>
{% endfor %}
{% for project in advertisings %}
<div class="project" data-id="{{ project.id }}" data-type="advertising">
<img src="{{ project.images[0].uri }}">
- <span>{{ project.shortname }}</span>
+ <span>{{ project.title }}</span>
</div>
{% endfor %}
{% for project in experientials %}
<div class="project" data-id="{{ project.id }}" data-type="experiential">
<img src="{{ project.images[0].uri }}">
- <span>{{ project.shortname }}</span>
+ <span>{{ project.title }}</span>
</div>
{% endfor %}
{% for project in contents %}
<div class="project" data-id="{{ project.id }}" data-type="content">
<img src="{{ project.images[0].uri }}">
- <span>{{ project.shortname }}</span>
+ <span>{{ project.title }}</span>
</div>
{% endfor %}
</div>
diff --git a/site/templates/index.liquid b/site/templates/index.liquid
index 19bdf88..19a0b6c 100644
--- a/site/templates/index.liquid
+++ b/site/templates/index.liquid
@@ -88,25 +88,25 @@ WEBSITE BY OKFOCUS, http://okfoc.us, Internet Legends.
<div class="cat">retail</div>
<div class="sub">
{% for project in retails %}
- <a href="#" data-type="retail" data-id="{{ project.id }}">{{ project.shortname }}</a>
+ <a href="#" data-type="retail" data-id="{{ project.id }}">{{ project.menu }}</a>
{% endfor %}
</div>
<div class="cat">advertising</div>
<div class="sub">
{% for project in advertisings %}
- <a href="#" data-type="advertising" data-id="{{ project.id }}">{{ project.shortname }}</a>
+ <a href="#" data-type="advertising" data-id="{{ project.id }}">{{ project.menu }}</a>
{% endfor %}
</div>
<div class="cat">experiential</div>
<div class="sub">
{% for project in experientials %}
- <a href="#" data-type="experiential" data-id="{{ project.id }}">{{ project.shortname }}</a>
+ <a href="#" data-type="experiential" data-id="{{ project.id }}">{{ project.menu }}</a>
{% endfor %}
</div>
<div class="cat">content</div>
<div class="sub">
{% for project in contents %}
- <a href="#" data-type="content" data-id="{{ project.id }}">{{ project.shortname }}</a>
+ <a href="#" data-type="content" data-id="{{ project.id }}">{{ project.menu }}</a>
{% endfor %}
</div>
</div>
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js
index ab571f3..aa8d0ad 100644
--- a/themes/okadmin/public/js/app.js
+++ b/themes/okadmin/public/js/app.js
@@ -51,7 +51,7 @@ var OKAdmin = function(){
// fix post indexing in list-driven inputs
$(".main.resource form").submit(function(e){
- var $id = $("[name=id]"), $title = $("[name=title]"), $shortname = $("[name=shortname]"), $section = $(".resource.main")
+ var $id = $("[name=id]"), $title = $("[name=title]"), $menu = $("[name=menu]"), $section = $(".resource.main")
var id = $section.data("id"), type = $section.data("type")
if ($title.length && ! $title.val()) {
@@ -61,8 +61,8 @@ var OKAdmin = function(){
return
}
- if ($shortname.length && ! $shortname.val()) {
- $shortname.val( $title.val() )
+ if ($menu.length && ! $menu.val()) {
+ $menu.val( $title.val() )
return
}