diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 8a9aa2f23..1528e629e 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -205,7 +205,7 @@ $(document).ready( function() { * actually provided to update the input field where you type, but here * we use it to update a second input field with the doc id. */ updater: function (item) { - strarr = item.split("#"); + strarr = item.value.split("#"); target = this.$element.data('target'); $('#'+target).attr('value', strarr[0]); return strarr[1]; @@ -233,7 +233,7 @@ $(document).ready( function() { * actually provided to update the input field, but here we use * it to set the document location. */ updater: function (item) { - strarr = item.split("#"); + strarr = item.value.split("#"); //console.log(this.$element.data('target')); target = this.$element.data('target'); $('#'+target).attr('value', strarr[0]);