diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-13 18:52:06 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-13 18:52:06 -0400 |
| commit | 455c09226f1bc57021147e889ef1127e982ed67c (patch) | |
| tree | 7a3fc6be24123cbd73001177a37df30fc53feac7 /themes | |
| parent | dee6b3e3fd32b6b002a465e5723d51860e763b20 (diff) | |
rename shortname -> menu to be clear
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/okadmin/public/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |
