diff --git a/module/search/view/buildform.html.php b/module/search/view/buildform.html.php
index 952c09b63c..6072efc769 100644
--- a/module/search/view/buildform.html.php
+++ b/module/search/view/buildform.html.php
@@ -244,7 +244,7 @@ foreach($fieldParams as $fieldName => $param)
echo html::submitButton($lang->search->common, '', 'btn btn-primary') . " ";
if($style != 'simple')
{
- if(common::hasPriv('search', 'saveQuery')) echo html::a($this->createLink('search', 'saveQuery', "module=$module&onMenuBar=$onMenuBar"), $lang->save, '', "class='btn-save-form btn btn-secondary iframe'") . " ";
+ if(common::hasPriv('search', 'saveQuery')) echo html::a($this->createLink('search', 'saveQuery', "module=$module&onMenuBar=$onMenuBar"), $lang->save, '', "class='btn-save-form btn btn-secondary iframe' id='save-query'") . " ";
echo html::commonButton($lang->search->reset, '', 'btn-reset-form btn');
}
echo html::commonButton('', '', 'btn-expand-form btn btn-info pull-right');
@@ -303,6 +303,9 @@ $(function()
$select.picker(pickerOptions);
});
+ $('#queryBox select, #queryBox input').change(function(){
+ $('#save-query').attr("disabled","disabled");
+ })
/* Toggle user queries action. */
$('#toggle-queries').click(function()
{