forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ks filter: sync proxy value for text input; remove label from popover
- Loading branch information
Showing
6 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<span role="button" tabindex="0" class="form-control il-filter-field" <!-- BEGIN with_id -->id="{ID}"<!-- END with_id --> data-placement="bottom"></span> {POPOVER} | ||
<span role="button" tabindex="0" class="form-control il-filter-field" <!-- BEGIN id -->id="{ID}"<!-- END id --> data-placement="bottom"></span> {POPOVER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<input type="text"<!-- BEGIN value --> value="{VALUE}"<!-- END value --> name="{NAME}" class="form-control form-control-sm" /> | ||
<input <!-- BEGIN id --> id="{ID}"<!-- END id --> type="text"<!-- BEGIN value --> value="{VALUE}"<!-- END value --> name="{NAME}" class="form-control form-control-sm" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Filter | ||
* | ||
* @author <[email protected]> | ||
*/ | ||
|
||
var il = il || {}; | ||
il.UI = il.UI || {}; | ||
|
||
(function($, UI) { | ||
|
||
UI.filter = (function ($) { | ||
/** | ||
* | ||
* @param event | ||
* @param id | ||
* @param value_as_string | ||
*/ | ||
var handleChange = function(event, id, value_as_string) { | ||
var pop_id = $("#" + id).parents(".il-popover").attr("id"); | ||
$("span[data-target='" + pop_id + "']").html(value_as_string); | ||
}; | ||
|
||
/** | ||
* Public interface | ||
*/ | ||
return { | ||
handleChange: handleChange | ||
}; | ||
|
||
})($); | ||
})($, il.UI); |