Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/code/tools.js
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Line(s) | 154 | function triggerAction(model, index, actionId, actionArgument) { | |||
---|---|---|---|---|---|
159 | if (startsWith(actionId, "_kicker_favorite_")) { | 159 | if (startsWith(actionId, "_kicker_favorite_")) { | ||
160 | handleFavoriteAction(actionId, actionArgument); | 160 | handleFavoriteAction(actionId, actionArgument); | ||
161 | return; | 161 | return; | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | var closeRequested = model.trigger(index, actionId, actionArgument); | 164 | var closeRequested = model.trigger(index, actionId, actionArgument); | ||
165 | 165 | | |||
166 | if (closeRequested) { | 166 | if (closeRequested) { | ||
167 | plasmoid.expanded = false; | | |||
168 | | ||||
169 | return true; | 167 | return true; | ||
170 | } | 168 | } | ||
171 | 169 | | |||
172 | return false; | 170 | return false; | ||
173 | } | 171 | } | ||
174 | 172 | | |||
175 | function handleFavoriteAction(actionId, actionArgument) { | 173 | function handleFavoriteAction(actionId, actionArgument) { | ||
176 | var favoriteId = actionArgument.favoriteId; | 174 | var favoriteId = actionArgument.favoriteId; | ||
Show All 28 Lines |