X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=mkdru.client.js;fp=mkdru.client.js;h=dae3fa78cf4e47e48d22ad9b2cde30de589b64be;hb=3f549fb4a29034f2c1aea81f0ec2a0c6b998601e;hp=b0d8b7f98895c817789163bb8eaecad779e9192e;hpb=51ac1b6ebfdc6ea011fdcf20456fa4855558dfd2;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.client.js b/mkdru.client.js index b0d8b7f..dae3fa7 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -30,7 +30,7 @@ var mkdru = { perpage: 20, sort: 'relevance', filter: null, - query:null, + query:'', recid:null }, state: {}, @@ -131,8 +131,8 @@ mkdru.pz2ByTarget = function (data) { mkdru.pz2Record = function (data) { clearTimeout(mkdru.pz2.showTimer); $('.mkdru-results').hide(); - $('.mkdru-detail').html(Drupal.theme('mkdruDetail', data)); - $('.mkdru-detail-back').bind('click', function () {$.bbq.removeState('recid');}); + $('.mkdru-detail').html(Drupal.theme('mkdruDetail', data, + mkdru.hashAddDelOne(null, null, 'recid'))); $('.mkdru-detail').show(); clearTimeout(mkdru.pz2.recordTimer); }; @@ -191,7 +191,7 @@ mkdru.hashChange = function () { } // Other internal link else { - // need to run search again to limit targets + // may need to run search again to limit targets for (key in mkdru.state) { if (key.substring(0,5) === 'limit') { mkdru.search();