@ -103,9 +103,9 @@
fileRenamer.useRegex = multirename_useRegex === 'true';
fileRenamer.useRegex = multirename_useRegex === 'true';
$('use_regex_search').checked = fileRenamer.useRegex;
$('use_regex_search').checked = fileRenamer.useRegex;
var multirename_matchAllOccurences = LocalPreferences.get('multirename_matchAllOccurences', false);
var multirename_matchAllOccurr ences = LocalPreferences.get('multirename_matchAllOccur rences', false);
fileRenamer.matchAllOccurences = multirename_matchAllOccurences === 'true';
fileRenamer.matchAllOccurr ences = multirename_matchAllOccur rences === 'true';
$('match_all_occurences').checked = fileRenamer.matchAllOccurences;
$('match_all_occurr ences').checked = fileRenamer.matchAllOccur rences;
var multirename_caseSensitive = LocalPreferences.get('multirename_caseSensitive', false);
var multirename_caseSensitive = LocalPreferences.get('multirename_caseSensitive', false);
fileRenamer.caseSensitive = multirename_caseSensitive === 'true';
fileRenamer.caseSensitive = multirename_caseSensitive === 'true';
@ -159,9 +159,9 @@
LocalPreferences.set('multirename_useRegex', e.target.checked);
LocalPreferences.set('multirename_useRegex', e.target.checked);
fileRenamer.update();
fileRenamer.update();
});
});
$('match_all_occurences').addEvent('change', function(e) {
$('match_all_occurr ences').addEvent('change', function(e) {
fileRenamer.matchAllOccurences = e.target.checked;
fileRenamer.matchAllOccurr ences = e.target.checked;
LocalPreferences.set('multirename_matchAllOccurences', e.target.checked);
LocalPreferences.set('multirename_matchAllOccurr ences', e.target.checked);
fileRenamer.update();
fileRenamer.update();
});
});
$('case_sensitive').addEvent('change', function(e) {
$('case_sensitive').addEvent('change', function(e) {
@ -232,7 +232,7 @@
// Disable Search Options
// Disable Search Options
$('multiRenameSearch').disabled = true;
$('multiRenameSearch').disabled = true;
$('use_regex_search').disabled = true;
$('use_regex_search').disabled = true;
$('match_all_occurences').disabled = true;
$('match_all_occurr ences').disabled = true;
$('case_sensitive').disabled = true;
$('case_sensitive').disabled = true;
// Disable Replace Options
// Disable Replace Options
$('multiRenameReplace').disabled = true;
$('multiRenameReplace').disabled = true;
@ -251,7 +251,7 @@
// Disable Search Options
// Disable Search Options
$('multiRenameSearch').disabled = false;
$('multiRenameSearch').disabled = false;
$('use_regex_search').disabled = false;
$('use_regex_search').disabled = false;
$('match_all_occurences').disabled = false;
$('match_all_occurr ences').disabled = false;
$('case_sensitive').disabled = false;
$('case_sensitive').disabled = false;
// Disable Replace Options
// Disable Replace Options
$('multiRenameReplace').disabled = false;
$('multiRenameReplace').disabled = false;
@ -427,8 +427,8 @@
< label for = "use_regex_search" > QBT_TR(Use regular expressions)QBT_TR[CONTEXT=PropertiesWidget]< / label >
< label for = "use_regex_search" > QBT_TR(Use regular expressions)QBT_TR[CONTEXT=PropertiesWidget]< / label >
< / div >
< / div >
< div class = "formRow" >
< div class = "formRow" >
< input type = "checkbox" id = "match_all_occurences" / >
< input type = "checkbox" id = "match_all_occurr ences" / >
< label for = "match_all_occurences" > QBT_TR(Match all occurrences)QBT_TR[CONTEXT=PropertiesWidget]< / label >
< label for = "match_all_occurr ences" > QBT_TR(Match all occurrences)QBT_TR[CONTEXT=PropertiesWidget]< / label >
< / div >
< / div >
< div class = "formRow" >
< div class = "formRow" >
< input type = "checkbox" id = "case_sensitive" / >
< input type = "checkbox" id = "case_sensitive" / >